All kinds of Message Digest in Java

1760阅读 0评论2013-03-25 kerlion
分类:Java



Ct


MessageDigest md = MessageDigest.getInstance("MD5", "FlexiCore");
The first parameter for the static getInstance() method is the standard name of the digest algorithm we want to use (here: "MD5", other algorithm names are possible, like "MD4", "SHA-1", "SHA-224", "SHA-256", "SHA-384", "SHA-512", "RIPEMD128", "RIPEMD160", "RIPEMD256", "RIPEMD320", "Tiger", "DHA256", and "FORK256"). The second parameter is the name of the security provider implementing the desired algorithm. Since we want to use the previously registered FlexiCoreProvider, we put "FlexiCore" in here.



A free java checksum package:    

Jacksum is a free and platform independent software for computing and verifying checksums, CRCs and message digests (known as hash values and fingerprints). "Jacksum" is a synthetic word made of JAva and ChecKSUM.

Jacksum supports 58 popular standard algorithms (Adler32, BSD sum, Bzip2's CRC-32, POSIX cksum, CRC-8, CRC-16, CRC-24, CRC-32 (FCS-32), CRC-64, ELF-32, eMule/eDonkey, FCS-16, GOST R 34.11-94, HAS-160, HAVAL (3/4/5 passes, 128/160/192/224/256 bits), MD2, MD4, MD5, MPEG-2's CRC-32, RIPEMD-128, RIPEMD-160, RIPEMD-256, RIPEMD-320, SHA-0, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, Tiger-128, Tiger-160, Tiger, Tiger2, Tiger Tree Hash, Tiger2 Tree Hash, Unix System V sum, sum8, sum16, sum24, sum32, Whirlpool-0, Whirlpool-1, Whirlpool and xor8).










上一篇:HTTP cookies
下一篇:STORED OUTLINE in Oracle 10g