fix: YUI 2.9.0组件漏洞

This commit is contained in:
fit2cloud-chenyw 2024-11-26 14:01:20 +08:00
parent 77108f1a03
commit affe49f6f2
2 changed files with 2 additions and 10 deletions

View File

@ -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')

@ -1 +1 @@
Subproject commit 315fa62982d6f322fb3dddf641882251f1572c79
Subproject commit a59b133cd98f1b2cae5c94aadfa216d7a814b592