JavaScript MD5 Library
这是一个纯 JavaScript 实现的 MD5 加密库。
使用方法:
<script type="text/javascript" src="md5.js"></script>
<script type="text/javascript" >
// quick test
var 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>
评论