mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-15 02:57:08 +08:00
chore: 优化部分代码
This commit is contained in:
@@ -28,7 +28,7 @@ export function encryptByRsa(txt: string) {
|
||||
|
||||
const defaultKeyWork = 'XwKsGlMcdPMEhR1B'
|
||||
|
||||
export function aesEncrypt(word, keyWord = defaultKeyWork) {
|
||||
export function encryptByAes(word, keyWord = defaultKeyWork) {
|
||||
const key = CryptoJS.enc.Utf8.parse(keyWord)
|
||||
const arcs = CryptoJS.enc.Utf8.parse(word)
|
||||
const encrypted = CryptoJS.AES.encrypt(arcs, key, {
|
||||
|
Reference in New Issue
Block a user