diff --git a/core/core-frontend/src/utils/encryption.ts b/core/core-frontend/src/utils/encryption.ts index 11f7fd04f2..84ee3f2c46 100644 --- a/core/core-frontend/src/utils/encryption.ts +++ b/core/core-frontend/src/utils/encryption.ts @@ -1,5 +1,5 @@ import CryptoJS from 'crypto-js/crypto-js' -import JSEncrypt from 'jsencrypt' +import JSEncrypt from 'jsencrypt/bin/jsencrypt.min' import { Base64 } from 'js-base64' import { useCache } from '@/hooks/web/useCache' import { useAppStoreWithOut } from '@/store/modules/app' @@ -11,14 +11,6 @@ const { wsCache } = useCache() const rsaKey = '-pk_separator-' const crypt = new JSEncrypt() -/* export const aesEncrypt = word => { - const srcs = CryptoJS.enc.Utf8.parse(word) - const encrypted = CryptoJS.AES.encrypt(srcs, aesKey, { - mode: CryptoJS.mode.CBC, - padding: CryptoJS.pad.Pkcs7 - }) - return CryptoJS.enc.Hex.stringify(encrypted.ciphertext) -} */ const aesDecrypt = (word, keyStr) => { const keyHex = CryptoJS.enc.Utf8.parse(keyStr) // const ivHex = CryptoJS.enc.Utf8.parse('0000000000000000') diff --git a/de-xpack b/de-xpack index 315fa62982..a59b133cd9 160000 --- a/de-xpack +++ b/de-xpack @@ -1 +1 @@ -Subproject commit 315fa62982d6f322fb3dddf641882251f1572c79 +Subproject commit a59b133cd98f1b2cae5c94aadfa216d7a814b592