corrected libsodium function call
This commit is contained in:
parent
0989d794d5
commit
85f17f0108
|
@ -70,7 +70,7 @@ export class Crypto {
|
|||
}
|
||||
|
||||
async decryptToUTF8(data, nonce, key) {
|
||||
return libsodium.decryptString(data, nonce, key);
|
||||
return libsodium.decryptToUTF8(data, nonce, key);
|
||||
}
|
||||
|
||||
async encryptToB64(data, key) {
|
||||
|
|
Loading…
Reference in a new issue