소스 검색

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