Commit d34467d3f4d0f709a99194e36c0e0b6f242d9b40
Committed by
GitHub
1 parent
ec3d51d6
fix(cipher): fix #587 (#588)
Showing
1 changed file
with
1 additions
and
1 deletions
src/utils/cipher.ts
@@ -43,7 +43,7 @@ export class AesEncryption { | @@ -43,7 +43,7 @@ export class AesEncryption { | ||
43 | } | 43 | } |
44 | 44 | ||
45 | export function encryptByBase64(cipherText: string) { | 45 | export function encryptByBase64(cipherText: string) { |
46 | - return Base64.parse(cipherText).toString(UTF8); | 46 | + return UTF8.parse(cipherText).toString(Base64); |
47 | } | 47 | } |
48 | 48 | ||
49 | export function decodeByBase64(cipherText: string) { | 49 | export function decodeByBase64(cipherText: string) { |