浏览代码

fix(cipher): fix #587 (#588)

江麻妞 4 年之前
父节点
当前提交
d34467d3f4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/cipher.ts

+ 1 - 1
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) {