JavaScript加密库 Crypto-JS
jopen
13年前
<p>Crypto-JS 为 JavaScript 提供了各种各样的加密算法。目前已支持的算法包括:</p> <ul> <li>MD5</li> <li>SHA-1</li> <li>SHA-256</li> <li>AES</li> <li>Rabbit</li> <li>MARC4</li> <li>HMAC <ul> <li>HMAC-MD5</li> <li>HMAC-SHA1</li> <li>HMAC-SHA256</li> </ul> </li> <li>PBKDF2</li> </ul> <p>示例代码:</p> <p></p> <pre class="brush:javascript; toolbar: true; auto-links: false;"><script type="text/javascript" src="http://crypto-js.googlecode.com/files/2.0.0-crypto-md5.js"></script> <script type="text/javascript"> var digest = Crypto.MD5("Message"); var digestBytes = Crypto.MD5("Message", { asBytes: true }); var digestString = Crypto.MD5("Message", { asString: true }); </script></pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1328021391999" target="_blank">http://www.open-open.com/lib/view/home/1328021391999</a></p> <p></p>