一个用于加密的JavaScript工具包 - Cryptico.js

admin 13年前
     <p><a href="/misc/goto?guid=4958188450988605864" target="_blank">Cryptico.js</a> 是一个易于使用的JavaScript工具包用于在客户端对文本进行加密。</p>    <p>它支持RSA + AES方法,任意字节长度(228, 1024等)的文本都可以进行加密。 <a href="/misc/goto?guid=4958188450988605864" target="_blank"><img title="Cryptico.js" border="0" alt="Cryptico.js" src="https://simg.open-open.com/show/06ab823b2446c5396a18109bbfe42e4d.jpg" width="480" height="161" /></a></p>    <p>内容使用一个公钥进行加密,并且只能用这个密钥进行解密。<br /> <strong>Cryptico.js</strong> 没有依赖任何JS框架进行开发,拥有良好的文档。<br /> </p>    <pre class="brush:javascript; toolbar: true; auto-links: false;">// The passphrase used to repeatably generate this RSA key.  var PassPhrase = "The Moon is a Harsh Mistress.";     // The length of the RSA key, in bits.  var Bits = 1024;     var MattsRSAkey = cryptico.generateRSAKey(PassPhrase, Bits);</pre>    <pre class="brush:javascript; toolbar: true; auto-links: false;">var PlainText = "Matt, I need you to help me with my Starcraft strategy.";    var EncryptionResult = cryptico.encrypt(PlainText, MattsPublicKeyString);</pre>    <p><br /> 项目主页:<a href="/misc/goto?guid=4958188450988605864" target="_blank">http://cryptico.wwwtyro.net/</a><br /> </p>