Provides a CNG (Cryptography Next Generation) implementation of the MD5 (Message Digest 5) 128-bit hashing algorithm.
See Also: MD5Cng Members
This algorithm is for hashing only and does not provide any encryption or decryption. It uses the BCrypt (BestCrypt) layer CNG.
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.
Using the MD5 algorithm with the FIPS Windows security setting enabled throws a System.Security.Cryptography.CryptographicException exception.