Szerkesztés

Megosztás a következőn keresztül:


AssemblyHashAlgorithm Enum

Definition

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
AssemblyHashAlgorithm

Fields

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 SHA1 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 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.

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