Export (0) Print
Expand All

AssemblyHashAlgorithm Enumeration

Specifies all the hash algorithms used for hashing files and for generating the strong name.

Namespace:  System.Configuration.Assemblies
Assembly:  mscorlib (in mscorlib.dll)

[SerializableAttribute]
[ComVisibleAttribute(true)]
public enum AssemblyHashAlgorithm

Member nameDescription
Supported by the XNA FrameworkMD5Retrieves the MD5 message-digest algorithm. 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.
Supported by the XNA FrameworkNoneA 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.
Supported by the XNA FrameworkSHA1A mask used to retrieve a revision of the Secure Hash Algorithm that corrects an unpublished flaw in SHA.
SHA256A mask used to retrieve a version of the Secure Hash Algorithm with a hash size of 256 bits.
SHA384A mask used to retrieve a version of the Secure Hash Algorithm with a hash size of 384 bits.
SHA512A mask used to retrieve a version of the Secure Hash Algorithm with a hash size of 512 bits.

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) is relatively easy to compute for any given x.

  • H (x) is one-way.

  • H (x) is collision-free.

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. Examples of well-known hash functions are MD2 and and SHA.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft