<PackageReference Include="System.Reflection.Metadata" Version="11.0.0-preview.4.26230.115" />

System.Reflection.AssemblyHashAlgorithm

public enum AssemblyHashAlgorithm
Specifies the hash algorithms used for hashing assembly files and for generating the strong name.
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.

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.

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.