diff --git a/src/core/utils/aes.js b/src/core/utils/aes.js index 1d739a8faa..9971ebdd42 100644 --- a/src/core/utils/aes.js +++ b/src/core/utils/aes.js @@ -2317,7 +2317,7 @@ * * var ciphertext = BI.aesEncrypt(text, key); */ - encrypt: function (text, key) { + aesEncrypt: function (text, key) { key = CryptoJS.enc.Utf8.parse(key); var cipher = CryptoJS.AES.encrypt(text, key, { mode: CryptoJS.mode.ECB,