Encrypt plaintext. Returns the base64-encoded sealed box.
Decrypt a sealed box. Returns the plaintext as a UTF-8 string.
The last ciphertext produced by encrypt().
The last plaintext produced by decrypt().
True while an encrypt or decrypt operation is in progress.
Return type of the useEncrypt hook.
Example