<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                ~~~ if (! function_exists('aes_encode')) { /** * @param $response_array_data * @return string */ function aes_encode($response_array_data) { $key = 'xxx'; $iv = 'xxx'; $response_array_data = json_encode($response_array_data, JSON_UNESCAPED_UNICODE); $encode_data = base64_encode(openssl_encrypt($response_array_data, "AES-128-CBC", $key, OPENSSL_RAW_DATA, $iv)); return $encode_data; } } /** * 接口aes 加密 */ if (! function_exists('aes_decode')) { /** * @param $response_array_data * @return string */ function aes_decode($data) { $key = 'xxx'; $iv = 'xxx'; $decode_data = openssl_decrypt(base64_decode($data), "AES-128-CBC", $key, OPENSSL_RAW_DATA, $iv); return $decode_data; } } ~~~ ## js > npm install crypto-js ~~~ import CryptoJS from "crypto-js"; || const CryptoJS = require("crypto-js"); // 十六位十六進制數作為密鑰 const SECRET_KEY = CryptoJS.enc.Utf8.parse("7f80d3b5c63b76c2"); // 十六位十六進制數作為密鑰偏移量 const SECRET_IV = CryptoJS.enc.Utf8.parse("9c7a36d0d8f8a5c9"); const data = "13172" const encryptText = encrypt(data); console.log("加密", encryptText); const decryptText = decrypt(encryptText); console.log("解密", decryptText); /** * 加密方法 * @param data * @returns {string} */ function encrypt(data) { var encrypted = CryptoJS.AES.encrypt(data, SECRET_KEY, { iv: SECRET_IV, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 }); return encrypted; } /** * 解密方法 * @param data * @returns {string} */ function decrypt(data) { var decrypted = CryptoJS.AES.decrypt(data, SECRET_KEY, { iv: SECRET_IV, padding: CryptoJS.pad.Pkcs7 }).toString(CryptoJS.enc.Utf8); return decrypted; } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看