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 SHA256Cng class or the SHA512Cng class instead of the MD5Cng class. Use MD5Cng only for compatibility with legacy applications and data.

Note

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