SHA1.Create Metod

Definition

Tillåter att specifika implementeringar av den här abstrakta klassen instansieras.

Överlagringar

Name Description
Create()

Skapar en instans av standardimplementeringen av SHA1.

Create(String)
Föråldrad.

Skapar en instans av den angivna implementeringen av SHA1.

Create()

Källa:
SHA1.cs
Källa:
SHA1.cs
Källa:
SHA1.cs
Källa:
SHA1.cs
Källa:
SHA1.cs

Skapar en instans av standardimplementeringen av 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

Returer

En ny instans av SHA1.

Kommentarer

Standardimplementeringen av SHA1 är SHA1CryptoServiceProvider.

Se även

Gäller för

Create(String)

Källa:
SHA1.cs
Källa:
SHA1.cs
Källa:
SHA1.cs
Källa:
SHA1.cs
Källa:
SHA1.cs

Varning

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

Skapar en instans av den angivna implementeringen av 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

Parametrar

hashName
String

Namnet på den specifika implementeringen av SHA1 som ska användas.

Returer

En ny instans av SHA1 att använda den angivna implementeringen.

Attribut

Kommentarer

På grund av kollisionsproblem med SHA-1 rekommenderar Microsoft en säkerhetsmodell baserad på SHA-256 eller bättre.

Se även

Gäller för