Share via


KeyedHashAlgorithm.Create 메서드

정의

키 지정 해시 알고리즘 구현의 인스턴스를 만듭니다.

오버로드

Create()
사용되지 않음.
사용되지 않음.

키 지정 해시 알고리즘의 기본 구현 인스턴스를 만듭니다.

Create(String)
사용되지 않음.

키 지정 해시 알고리즘의 지정된 구현에 대한 인스턴스를 만듭니다.

Create()

Source:
KeyedHashAlgorithm.cs
Source:
KeyedHashAlgorithm.cs
Source:
KeyedHashAlgorithm.cs

주의

The default implementation of this cryptography algorithm is not supported

주의

The default implementation of this cryptography algorithm is not supported.

키 지정 해시 알고리즘의 기본 구현 인스턴스를 만듭니다.

public:
 static System::Security::Cryptography::KeyedHashAlgorithm ^ Create();
[System.Obsolete("The default implementation of this cryptography algorithm is not supported", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.KeyedHashAlgorithm Create ();
[System.Obsolete("The default implementation of this cryptography algorithm is not supported.", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.KeyedHashAlgorithm Create ();
public static System.Security.Cryptography.KeyedHashAlgorithm Create ();
[<System.Obsolete("The default implementation of this cryptography algorithm is not supported", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : unit -> System.Security.Cryptography.KeyedHashAlgorithm
[<System.Obsolete("The default implementation of this cryptography algorithm is not supported.", DiagnosticId="SYSLIB0007", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : unit -> System.Security.Cryptography.KeyedHashAlgorithm
static member Create : unit -> System.Security.Cryptography.KeyedHashAlgorithm
Public Shared Function Create () As KeyedHashAlgorithm

반환

기본 설정이 변경되지 않는 한 새 HMACSHA1 인스턴스입니다.

특성

설명

기본적으로 이 오버로드는 키 해시 HMACSHA1 알고리즘의 구현을 사용합니다. 다른 구현을 지정하려면 대신 알고리즘 이름을 지정할 수 있는 오버로드를 사용합니다 Create(String) . 암호화 구성 시스템은 클래스의 기본 구현을 KeyedHashAlgorithm 정의합니다.

SHA1과의 충돌 문제 때문에, Microsoft에서는 SHA256 이상을 기반으로 하는 보안 모델을 권장합니다.

추가 정보

적용 대상

Create(String)

Source:
KeyedHashAlgorithm.cs
Source:
KeyedHashAlgorithm.cs
Source:
KeyedHashAlgorithm.cs

주의

Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.

키 지정 해시 알고리즘의 지정된 구현에 대한 인스턴스를 만듭니다.

public:
 static System::Security::Cryptography::KeyedHashAlgorithm ^ Create(System::String ^ algName);
public static System.Security.Cryptography.KeyedHashAlgorithm? Create (string algName);
[System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static System.Security.Cryptography.KeyedHashAlgorithm? Create (string algName);
public static System.Security.Cryptography.KeyedHashAlgorithm Create (string algName);
static member Create : string -> System.Security.Cryptography.KeyedHashAlgorithm
[<System.Obsolete("Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.", DiagnosticId="SYSLIB0045", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member Create : string -> System.Security.Cryptography.KeyedHashAlgorithm
Public Shared Function Create (algName As String) As KeyedHashAlgorithm

매개 변수

algName
String

사용할 키 지정 해시 알고리즘 구현입니다. 다음 표에서는 algName 매개 변수의 올바른 값과 매핑할 알고리즘을 보여 줍니다.

매개 변수 값 Implements
System.Security.Cryptography.HMACHMACSHA1
System.Security.Cryptography.KeyedHashAlgorithmHMACSHA1
HMACMD5HMACMD5
System.Security.Cryptography.HMACMD5HMACMD5
HMACRIPEMD160HMACRIPEMD160
System.Security.Cryptography.HMACRIPEMD160HMACRIPEMD160
HMACSHA1HMACSHA1
System.Security.Cryptography.HMACSHA1HMACSHA1
HMACSHA256HMACSHA256
System.Security.Cryptography.HMACSHA256HMACSHA256
HMACSHA384HMACSHA384
System.Security.Cryptography.HMACSHA384HMACSHA384
HMACSHA512HMACSHA512
System.Security.Cryptography.HMACSHA512HMACSHA512
MACTripleDESMACTripleDES
System.Security.Cryptography.MACTripleDESMACTripleDES

반환

키 지정 해시 알고리즘의 새 인스턴스입니다.

특성

예외

.NET Core 2.0 - 3.1 및 .NET 5 이상: 모든 경우에.

설명

이 메서드는 .NET 5 이상 버전에서 사용되지 않습니다.

이 메서드는 MD5, SHA-1, SHA-256 및 RIPEMD160 비롯한 다양한 알고리즘을 지원합니다. 전체 목록은 매개 변수에 대해 algName 지원되는 값을 참조하세요.

추가 정보

적용 대상