ECDiffieHellmanCng.HashAlgorithm Propriété
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit l'algorithme de hachage à utiliser lors de la génération du matériel de clé.
public:
property System::Security::Cryptography::CngAlgorithm ^ HashAlgorithm { System::Security::Cryptography::CngAlgorithm ^ get(); void set(System::Security::Cryptography::CngAlgorithm ^ value); };
public System.Security.Cryptography.CngAlgorithm HashAlgorithm { get; set; }
member this.HashAlgorithm : System.Security.Cryptography.CngAlgorithm with get, set
Public Property HashAlgorithm As CngAlgorithm
Objet qui spécifie l'algorithme de hachage.
La valeur est null
.
Cette propriété est utilisée par les objets Cryptography Next Generation (CNG) uniquement si la Hash valeur ou Hmac est définie dans la KeyDerivationFunction propriété .
Cette propriété accepte les algorithmes suivants : MD5, Sha1, Sha256, Sha384et Sha512.
D’autres algorithmes de hachage personnalisés peuvent également être utilisés.
En raison de problèmes de collision avec MD5 et SHA1, Microsoft recommande Sha256. L’algorithme par défaut est Sha256.
Produit | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.1 (package-provided) |
Windows Desktop | 3.0, 3.1, 5 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :