From d34467d3f4d0f709a99194e36c0e0b6f242d9b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E9=BA=BB=E5=A6=9E?= <50100681+jiangmaniu@users.noreply.github.com> Date: Wed, 12 May 2021 20:35:52 +0800 Subject: [PATCH] fix(cipher): fix #587 (#588) --- src/utils/cipher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/cipher.ts b/src/utils/cipher.ts index 3f03e025..9a8a89a9 100644 --- a/src/utils/cipher.ts +++ b/src/utils/cipher.ts @@ -43,7 +43,7 @@ export class AesEncryption { } export function encryptByBase64(cipherText: string) { - return Base64.parse(cipherText).toString(UTF8); + return UTF8.parse(cipherText).toString(Base64); } export function decodeByBase64(cipherText: string) {