System.Security.Cryptography.MD5Cng Class

Provides a CNG (Cryptography Next Generation) implementation of the MD5 (Message Digest 5) 128-bit hashing algorithm.

See Also: MD5Cng Members

Syntax

public sealed class MD5Cng : MD5

Remarks

This algorithm is for hashing only and does not provide any encryption or decryption. It uses the BCrypt (BestCrypt) layer CNG.

Note:

Newer hashing algorithms such as the Secure Hash Algorithms SHA-256 and SHA-512 are available. Consider using either the System.Security.Cryptography.SHA256Cng class or the System.Security.Cryptography.SHA512Cng class instead of the System.Security.Cryptography.MD5Cng class. Use System.Security.Cryptography.MD5Cng only for compatibility with legacy applications and data.

Note:

Using the MD5 algorithm with the FIPS Windows security setting enabled throws a System.Security.Cryptography.CryptographicException exception.

Requirements

Namespace: System.Security.Cryptography
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0