Browse Source

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

江麻妞 4 years ago
parent
commit
d34467d3f4
1 changed files with 1 additions and 1 deletions
  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) {