mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
Merge pull request #13561 from dataease/pr@dev-v2@fix_yui
fix: YUI 2.9.0组件漏洞
This commit is contained in:
@@ -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')
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 315fa62982...a59b133cd9
Reference in New Issue
Block a user