Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1282136
  • 博文数量: 127
  • 博客积分: 2286
  • 博客等级: 大尉
  • 技术积分: 1943
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-10 10:37
文章分类

全部博文(127)

文章存档

2018年(1)

2015年(2)

2014年(1)

2013年(30)

2012年(88)

2011年(5)

分类: Java

2013-03-25 11:58:42



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).










阅读(1632) | 评论(0) | 转发(0) |
0

上一篇:HTTP cookies

下一篇:STORED OUTLINE in Oracle 10g

给主人留下些什么吧!~~