Messagedigest (Message Digest)
Http://www.lukfor.com
Message DigestAlgorithmThere are mainly the following types:
Md2: The md2 message digest algorithm as defined in RFC 1319.
MD5: The MD5 message digest algorithm as defined in RFC 1321.
SHA-1: The secure hash algorithm, as defined in Secure Hash Standard, nist fips 180-1.
SHA-256,SHA-384, AndSHA-512: New hash algorithms for which the draft federal information processing standard 180-2,Secure Hash Standard (SHS)Is now available. SHA-256 is a 256-bit hash function intended to provide 128 bits of security against collision attacks, while SHA-512 is a 512-bit hash function intended to provide 256 bits of security. A 384-bit hash may be obtained by truncating the SHA-512 output.
We are familiar with MD5 and Sha.
We can use the following method to obtain the messagedigest instance.
Messagedigest MD = messagedigest. getintance ("MD5 ");