WXL
11 小时以前 05c363fdd7ab04e3bd9a753e2c5d5bfff04d681c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"use strict";
const common_vendor = require("../common/vendor.js");
const SECRET_KEY = "QfOpO2026@SecretKey#Aes256!00001";
const IV = "1234567890123456";
common_vendor.index.__f__("log", "at utils/crypto.js:7", SECRET_KEY);
function encrypt(text) {
  const key = common_vendor.CryptoJS.enc.Utf8.parse(SECRET_KEY);
  const iv = common_vendor.CryptoJS.enc.Utf8.parse(IV);
  const encrypted = common_vendor.CryptoJS.AES.encrypt(text, key, {
    iv,
    mode: common_vendor.CryptoJS.mode.CBC,
    padding: common_vendor.CryptoJS.pad.Pkcs7
  });
  return encrypted.toString();
}
exports.encrypt = encrypt;
//# sourceMappingURL=../../.sourcemap/mp-weixin/utils/crypto.js.map