SOURCE

// https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js
var aseKey1 = "1234567812345678";    //16位秘钥
var aseKey2 = "8765432112345678";
var sStr = 'vfg===d4r';
var now = new Date();

var encrypt1 = CryptoJS.AES.encrypt(now.getTime()+"", CryptoJS.enc.Utf8.parse(aseKey1), {
  mode: CryptoJS.mode.ECB,
  padding: CryptoJS.pad.Pkcs7
}).toString();
var encrypt2 = CryptoJS.AES.encrypt(now.getTime()+5000+"", CryptoJS.enc.Utf8.parse(aseKey1), {
  mode: CryptoJS.mode.ECB,
  padding: CryptoJS.pad.Pkcs7
}).toString();
var encrypt = CryptoJS.AES.encrypt(encrypt1+sStr+encrypt2, CryptoJS.enc.Utf8.parse(aseKey2), {
  mode: CryptoJS.mode.ECB,
  padding: CryptoJS.pad.Pkcs7
}).toString();
console.log(encrypt);
console 命令行工具 X clear

                    
>
console