From 81195fd9c847662287275d3ddbebe42efeb54a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Mon, 10 Jul 2023 18:21:52 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=96=B0=E5=A2=9E=20=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8A=A0=E5=AF=86=E4=BC=A0=E8=BE=93=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20!pr377?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/crypto.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/crypto.ts b/src/utils/crypto.ts index a3eef8f..133893e 100644 --- a/src/utils/crypto.ts +++ b/src/utils/crypto.ts @@ -23,10 +23,10 @@ export const generateAesKey = () => { }; /** - * 随机生成aes 密钥 + * 加密base64 * @returns {string} */ -export const encryptBase64 = (str: string) => { +export const encryptBase64 = (str: CryptoJS.lib.WordArray) => { return CryptoJS.enc.Base64.stringify(str); };