decrypt()
Othent JS SDK decrypt() function
Last updated
Othent JS SDK decrypt() function
Last updated
The decrypt()
function allows applications to decrypt data that has been encrypted using the active user's private key, similarly to the .
Limitation: There's currently an 8KB limit in data size when using Othent, but this is currently being worked on. Track the progress on this .
Limitation: Also, the only currently available encryption/decryption algorithm is AES (AES256-GCM
).
This function assumes (and requires) a user is authenticated. See .
ciphertext: BinaryDataType
The data to be decrypted with the user's private key, which can be of type , or .
return Promise<Uint8Array>
A Promise
containing the decrypted data as .