From affe49f6f280ff7344dde3bd43f7d5e7cb77f730 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Tue, 26 Nov 2024 14:01:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20YUI=202.9.0=E7=BB=84=E4=BB=B6=E6=BC=8F?= =?UTF-8?q?=E6=B4=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/encryption.ts | 10 +--------- de-xpack | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) 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