Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Name | Value | Description |
---|---|---|
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 SHA-1 algorithm, since multi-module assemblies need to generate a hash. |
MD5 | 32771 | Retrieves the MD5 message-digest algorithm. Due to collision problems with MD5, Microsoft recommends SHA-256. 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. |
Sha1 | 32772 | Retrieves a revision of the Secure Hash Algorithm that corrects an unpublished flaw in SHA. Due to collision problems with SHA-1, Microsoft recommends SHA-256. |
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. |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Framework | 4.6.2 (package-provided), 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in