chore: 优化部分代码

This commit is contained in:
2024-05-17 21:03:00 +08:00
parent d4b9057554
commit 3a44a818d8
7 changed files with 46 additions and 58 deletions

View File

@@ -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, {