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

This commit is contained in:
江麻妞 2021-05-12 20:35:52 +08:00 committed by GitHub
parent ec3d51d69b
commit d34467d3f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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