这是一个纯JavaScript实现的MD5加密库。
使用方法:
<script type="text/javascript" src="md5.js"></script><script type="text/javascript" >//quicktestvar input1="ABC";var input2=["A","B","C"];var input3=[0x41,0x42,0x43];alert(faultylabs.MD5(input1) =="902FBDD2B1DF0C4F70B4A5D23525E932");alert(faultylabs.MD5(input2) =="902FBDD2B1DF0C4F70B4A5D23525E932");alert(faultylabs.MD5(input3) =="902FBDD2B1DF0C4F70B4A5D23525E932");</script>
评论