CngAlgorithm.Sha1 屬性

定義

獲得 CngAlgorithm 一個新物件,指定安全雜湊演算法 1(SHA-1)演算法。

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

屬性值

一個指定 SHA-1 演算法的物件。

備註

由於 SHA-1 有碰撞問題,Microsoft 建議使用 SHA-256。

適用於