Browse Source

Merge pull request #965 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '3c90049c21c44593678e494e193981543f5d52e0':
  无JIRA任务 改多了
es6
guy 5 years ago
parent
commit
a7ec5af4e0
  1. 2
      src/core/utils/aes.js

2
src/core/utils/aes.js

@ -2317,7 +2317,7 @@
* *
* var ciphertext = BI.aesEncrypt(text, key); * var ciphertext = BI.aesEncrypt(text, key);
*/ */
encrypt: function (text, key) { aesEncrypt: function (text, key) {
key = CryptoJS.enc.Utf8.parse(key); key = CryptoJS.enc.Utf8.parse(key);
var cipher = CryptoJS.AES.encrypt(text, key, { var cipher = CryptoJS.AES.encrypt(text, key, {
mode: CryptoJS.mode.ECB, mode: CryptoJS.mode.ECB,

Loading…
Cancel
Save