AssemblyHashAlgorithm Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- Inheritance
Fields
MD5 | 32771 | Retrieves the MD5 message-digest algorithm. Due to collision problems with MD5, Microsoft recommends SHA256. MD5 was developed by Rivest in 1991. It is basically MD4 with safety-belts and, while it is slightly slower than MD4, it helps provide more security. 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. 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 | Retrieves a revision of the Secure Hash Algorithm that corrects an unpublished flaw in SHA. Due to collision problems with SHA1, Microsoft recommends SHA256. |
Sha256 | 32780 | Retrieves a version of the Secure Hash Algorithm with a hash size of 256 bits. |
Sha384 | 32781 | Retrieves a version of the Secure Hash Algorithm with a hash size of 384 bits. |
Sha512 | 32782 | Retrieves a version of the Secure Hash Algorithm with a hash size of 512 bits. |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈