AssemblyHashAlgorithm 列舉

定義

指定用於雜湊檔案和產生強式名稱 (Strong Name) 的所有雜湊演算法。Specifies all the hash algorithms used for hashing files and for generating the strong name.

public enum class AssemblyHashAlgorithm
public enum AssemblyHashAlgorithm
[System.Serializable]
public enum AssemblyHashAlgorithm
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum AssemblyHashAlgorithm
type AssemblyHashAlgorithm = 
[<System.Serializable>]
type AssemblyHashAlgorithm = 
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type AssemblyHashAlgorithm = 
Public Enum AssemblyHashAlgorithm
繼承
AssemblyHashAlgorithm
屬性

欄位

MD5 32771

擷取 MD5 訊息摘要演算法。Retrieves the MD5 message-digest algorithm. 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 的衝突問題,Microsoft 建議使用 SHA256。Due to collision problems with SHA1, Microsoft recommends SHA256.

SHA1 32772

用於擷取安全雜湊演算法 (Secure Hash Algorithm) 修訂版的遮罩,其修正在 SHA 中沒有發行的漏洞。A mask used to retrieve a revision of the Secure Hash Algorithm that corrects an unpublished flaw in SHA.

SHA256 32780

用來擷取安全雜湊演算法 (Secure Hash Algorithm) 版本的遮罩,其雜湊大小為 256 位元。A mask used to retrieve a version of the Secure Hash Algorithm with a hash size of 256 bits.

SHA384 32781

用來擷取安全雜湊演算法 (Secure Hash Algorithm) 版本的遮罩,其雜湊大小為 384 位元。A mask used to retrieve a version of the Secure Hash Algorithm with a hash size of 384 bits.

SHA512 32782

用來擷取安全雜湊演算法 (Secure Hash Algorithm) 版本的遮罩,其雜湊大小為 512 位元。A mask used to retrieve a version of the Secure Hash Algorithm with a hash size of 512 bits.

備註

hash function``H是採用輸入 m 並傳回固定大小字串(稱為雜湊值 h (也就是 h = H (m) ) 的轉換。A hash function``H is a transformation that takes an input m and returns a fixed-size string, which is called the hash value h (that is, h = H (m)). 只有這個屬性的雜湊函式具有各種一般計算用途,但在密碼編譯中採用時,雜湊函式通常會選擇有一些額外的屬性。Hash functions with just this property have a variety of general computational uses, but when employed in cryptography, the hash functions are usually chosen to have some additional properties.

密碼編譯雜湊函式的基本需求如下:The basic requirements for a cryptographic hash function are:

  • 輸入可以是任何長度。The input can be of any length.

  • 輸出的長度是固定的。The output has a fixed length.

  • H``x)針對任何指定的 x, (相當容易計算。H (x) is relatively easy to compute for any given x.

  • H (x) 是單向的。H (x) is one-way.

  • H (x) 無衝突。H (x) is collision-free.

雜湊值代表較長的訊息或從中計算的檔;此值稱為「訊息摘要」(message digest)。The hash value represents concisely the longer message or document from which it was computed; this value is called the message digest. 您可以將訊息摘要視為較大型檔的數位指紋。You can think of a message digest as a digital fingerprint of the larger document. 已知雜湊函數的範例包括 MD2 和 SHA。Examples of well-known hash functions are MD2 and SHA.

適用於