CngAlgorithm.Sha1 属性

定义

获取一个新的 CngAlgorithm 对象,它指定安全哈希算法 1 (SHA-1) 算法。Gets a new CngAlgorithm object that specifies the Secure Hash Algorithm 1 (SHA-1) algorithm.

public:
 static property System::Security::Cryptography::CngAlgorithm ^ Sha1 { System::Security::Cryptography::CngAlgorithm ^ get(); };
public static System.Security.Cryptography.CngAlgorithm Sha1 { get; }
member this.Sha1 : System.Security.Cryptography.CngAlgorithm
Public Shared ReadOnly Property Sha1 As CngAlgorithm

属性值

CngAlgorithm

一个指定 SHA-1 算法的对象。An object that specifies the SHA-1 algorithm.

注解

由于 SHA-1 出现冲突,Microsoft 建议采用 SHA-256。Due to collision problems with SHA-1, Microsoft recommends SHA-256.

适用于