Merge branch 'file-upload' into collection-ops
This commit is contained in:
commit
cf1cb28320
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,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