KeyedHashAlgorithm.Create Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Anahtarlı karma algoritmasının bir uygulamasının örneğini oluşturur.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| Create() |
Geçersiz.
Geçersiz.
Anahtarlı karma algoritmasının varsayılan uygulamasının bir örneğini oluşturur. |
| Create(String) |
Geçersiz.
Anahtarlı karma algoritmasının belirtilen uygulamasının bir örneğini oluşturur. |
Create()
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
Dikkat
The default implementation of this cryptography algorithm is not supported.
Dikkat
The default implementation of this cryptography algorithm is not supported
Anahtarlı karma algoritmasının varsayılan uygulamasının bir örneğini oluşturur.
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
Döndürülenler
Varsayılan ayarlar değiştirilmediği sürece yeni HMACSHA1 bir örnek.
- Öznitelikler
Açıklamalar
Varsayılan olarak, bu aşırı yükleme anahtarlı karma algoritmasının uygulamasını kullanır HMACSHA1 . Farklı bir uygulama belirtmek istiyorsanız, bunun yerine bir algoritma adı belirtmenize olanak tanıyan aşırı yüklemeyi kullanın Create(String) . Şifreleme yapılandırma sistemi, sınıfın varsayılan uygulamasını KeyedHashAlgorithm tanımlar.
SHA-1 ile ilgili çakışma sorunları nedeniyle Microsoft, SHA-256 veya üzerini temel alan bir güvenlik modeli önerir.
Ayrıca bkz.
Şunlara uygulanır
Create(String)
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
- Kaynak:
- KeyedHashAlgorithm.cs
Dikkat
Cryptographic factory methods accepting an algorithm name are obsolete. Use the parameterless Create factory method on the algorithm type instead.
Anahtarlı karma algoritmasının belirtilen uygulamasının bir örneğini oluşturur.
public:
static System::Security::Cryptography::KeyedHashAlgorithm ^ Create(System::String ^ algName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
[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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.KeyedHashAlgorithm? Create(string algName);
public static System.Security.Cryptography.KeyedHashAlgorithm Create(string algName);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
[<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
static member Create : string -> System.Security.Cryptography.KeyedHashAlgorithm
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")>]
static member Create : string -> System.Security.Cryptography.KeyedHashAlgorithm
Public Shared Function Create (algName As String) As KeyedHashAlgorithm
Parametreler
- algName
- String
Kullanılacak anahtarlı karma algoritması uygulaması. Aşağıdaki tabloda parametrenin geçerli değerleri algName ve eşledikleri algoritmalar gösterilmektedir.
| Parametre değeri | Uygulayan |
|---|---|
| System.Security.Cryptography.HMAC | HMACSHA1 |
| System.Security.Cryptography.KeyedHashAlgorithm | HMACSHA1 |
| HMACMD5 | HMACMD5 |
| System.Security.Cryptography.HMACMD5 | HMACMD5 |
| HMACRIPEMD160 | HMACRIPEMD160 |
| System.Security.Cryptography.HMACRIPEMD160 | HMACRIPEMD160 |
| HMACSHA1 | HMACSHA1 |
| System.Security.Cryptography.HMACSHA1 | HMACSHA1 |
| HMACSHA256 | HMACSHA256 |
| System.Security.Cryptography.HMACSHA256 | HMACSHA256 |
| HMACSHA384 | HMACSHA384 |
| System.Security.Cryptography.HMACSHA384 | HMACSHA384 |
| HMACSHA512 | HMACSHA512 |
| System.Security.Cryptography.HMACSHA512 | HMACSHA512 |
| Mactripledes | MACTripleDES |
| System.Security.Cryptography.MACTripleDES | MACTripleDES |
Döndürülenler
Belirtilen anahtarlı karma algoritmasının yeni bir örneği.
- Öznitelikler
Özel durumlar
.NET Core 2.0 - 3.1 ve .NET 5 ve üzeri: Her durumda.
Açıklamalar
Bu yöntem, .NET 5 ve sonraki sürümlerde kullanımdan kaldırılır.
Bu yöntem MD5, SHA-1, SHA-256 ve RIPEMD160 gibi bir dizi algoritmayı destekler. Tam liste için parametresi için desteklenen değerlere algName bakın.