added missed boxSealOpen input converson from Base64
This commit is contained in:
parent
bbf73f1858
commit
200e03b0a0
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ export async function generateKeyPair() {
|
|||
|
||||
export async function boxSealOpen(input: string, publicKey: string, secretKey: string) {
|
||||
await sodium.ready;
|
||||
return await toB64(sodium.crypto_box_seal_open(input, await fromB64(publicKey), await fromB64(secretKey)));
|
||||
return await toB64(sodium.crypto_box_seal_open(await fromB64(input), await fromB64(publicKey), await fromB64(secretKey)));
|
||||
}
|
||||
|
||||
export async function fromB64(input: string) {
|
||||
|
|
Loading…
Add table
Reference in a new issue