<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          jsCryptoJavaScript加密庫(kù)

          聯(lián)合創(chuàng)作 · 2023-09-30 08:22

          jsCrypto 是一個(gè)實(shí)現(xiàn)了一些常用加密方法的 JavaScript 庫(kù),支持的算法包括:AES, SHA-1, HMAC, BASE64, RSA, ECC and IBE,這個(gè)庫(kù)也可以在 ActionScript 下使用。

          示例代碼:

          var cipher = jscrypto.aes;
          var key = 'password';
          var iv = 'initialvector';
          var encryptor = new jscrypto.cbcmode.encryptor(cipher, key, iv);
          var ctext = new Array();

          ctext.concat(encryptor.update('hello'));
          ctext.concat(encryptor.update('world'));
          ctext.concat(encryptor.final());

          document.write(ctext);

          瀏覽 29
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  免费成人高清 | 欧美三级电影在线播放 | 欧美精品一级二级A片 | 在线电影一区 | 亚洲AV无码久久久久网站飞鱼 |