Język

SHA1.Create Metoda

Definicja

Umożliwia utworzenie wystąpienia określonych implementacji tej klasy abstrakcyjnej.

Przeciążenia

Nazwa Opis
Create()

Tworzy wystąpienie domyślnej implementacji .SHA1

Create(String)
Przestarzałe.

Tworzy wystąpienie określonej implementacji .SHA1

Create()

Źródło:
SHA1.cs
Źródło:
SHA1.cs
Źródło:
SHA1.cs
Źródło:
SHA1.cs
Źródło:
SHA1.cs

Tworzy wystąpienie domyślnej implementacji .SHA1

public:
 static System::Security::Cryptography::SHA1 ^ Create();
public static System.Security.Cryptography.SHA1 Create();
static member Create : unit -> System.Security.Cryptography.SHA1
Public Shared Function Create () As SHA1

Zwraca

Nowe wystąpienie klasy SHA1.

Uwagi

Domyślna implementacja elementu SHA1 to SHA1CryptoServiceProvider.

Zobacz też

Dotyczy

Create(String)

Źródło:
SHA1.cs
Źródło:
SHA1.cs
Źródło:
SHA1.cs
Źródło:
SHA1.cs
Źródło:
SHA1.cs

Uwaga

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

Tworzy wystąpienie określonej implementacji .SHA1

public:
 static System::Security::Cryptography::SHA1 ^ Create(System::String ^ hashName);
[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.SHA1? Create(string hashName);
public static System.Security.Cryptography.SHA1? Create(string hashName);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The default algorithm implementations might be removed, use strong type references like 'RSA.Create()' instead.")]
public static System.Security.Cryptography.SHA1? Create(string hashName);
public static System.Security.Cryptography.SHA1 Create(string hashName);
[<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.SHA1
static member Create : string -> System.Security.Cryptography.SHA1
[<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.SHA1
Public Shared Function Create (hashName As String) As SHA1

Parametry

hashName
String

Nazwa konkretnej implementacji, która SHA1 ma być używana.

Zwraca

Nowe wystąpienie SHA1 użycia określonej implementacji.

Atrybuty

Uwagi

Ze względu na problemy z kolizją z algorytmem SHA-1 firma Microsoft zaleca model zabezpieczeń oparty na algorytmie SHA-256 lub lepszym.

Zobacz też

Dotyczy