AssemblyHashAlgorithm 列舉

定義

指定用於雜湊化組件檔,以及產生強式名稱的雜湊演算法。Specifies the hash algorithms used for hashing assembly files and for generating the strong name.

public enum class AssemblyHashAlgorithm
public enum AssemblyHashAlgorithm
type AssemblyHashAlgorithm = 
Public Enum AssemblyHashAlgorithm
繼承
AssemblyHashAlgorithm

欄位

MD5 32771

擷取 MD5 訊息摘要演算法。Retrieves the MD5 message-digest algorithm.

由於 MD5 的衝突問題,Microsoft 建議使用 SHA256。Due to collision problems with MD5, Microsoft recommends SHA256.

MD5 是由 Rivest 於 1991 年所開發的。MD5 was developed by Rivest in 1991. 基本上,它會以安全的方式來進行 MD4,而比 MD4 稍微慢一點,它有助於提供更高的安全性。It is basically MD4 with safety-belts and, while it is slightly slower than MD4, it helps provide more security. 演算法包含四個不同的步驟,與 MD4 設計的方法有些不同。The algorithm consists of four distinct rounds, which has a slightly different design from that of MD4. 訊息摘要大小,由於必須配合需求,因此是一樣的。Message-digest size, as well as padding requirements, remain the same.

None 0

指示沒有雜湊演算法的遮罩。A mask indicating that there is no hash algorithm.

如果您為多模組組件指定 None,Common Language Runtime 會預設成 SHA1 演算法,因為多模組組件需要產生雜湊。If you specify None for a multi-module assembly, the common language runtime defaults to the SHA1 algorithm, since multi-module assemblies need to generate a hash.

Sha1 32772

接收能修正 SHA 中未發佈缺陷的安全雜湊演算法。Retrieves a revision of the Secure Hash Algorithm that corrects an unpublished flaw in SHA.

由於 SHA1 的衝突問題,Microsoft 建議使用 SHA256。Due to collision problems with SHA1, Microsoft recommends SHA256.

Sha256 32780

接收雜湊大小為 256 位元的安全雜湊演算法版本。Retrieves a version of the Secure Hash Algorithm with a hash size of 256 bits.

Sha384 32781

接收雜湊大小為 384 位元的安全雜湊演算法版本。Retrieves a version of the Secure Hash Algorithm with a hash size of 384 bits.

Sha512 32782

接收雜湊大小為 512 位元的安全雜湊演算法版本。Retrieves a version of the Secure Hash Algorithm with a hash size of 512 bits.

適用於