SHA1.Create Metodo

Definizione

Consente di creare un'istanza di implementazioni specifiche di questa classe astratta.

Overload

Nome Descrizione
Create()

Crea un'istanza dell'implementazione predefinita di SHA1.

Create(String)
Obsoleti.

Crea un'istanza dell'implementazione specificata di SHA1.

Create()

Origine:
SHA1.cs
Origine:
SHA1.cs
Origine:
SHA1.cs
Origine:
SHA1.cs
Origine:
SHA1.cs

Crea un'istanza dell'implementazione predefinita di 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

Valori restituiti

Nuova istanza di SHA1.

Commenti

L'implementazione predefinita di SHA1 è SHA1CryptoServiceProvider.

Vedi anche

Si applica a

Create(String)

Origine:
SHA1.cs
Origine:
SHA1.cs
Origine:
SHA1.cs
Origine:
SHA1.cs
Origine:
SHA1.cs

Attenzione

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

Crea un'istanza dell'implementazione specificata di 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

Parametri

hashName
String

Nome dell'implementazione specifica di SHA1 da utilizzare.

Valori restituiti

Nuova istanza di SHA1 utilizzando l'implementazione specificata.

Attributi

Commenti

A causa di problemi di collisione con SHA-1, Microsoft consiglia un modello di sicurezza basato su SHA-256 o superiore.

Vedi anche

Si applica a