The most recent ciphertext (hex-encoded).
The most recent decrypted plaintext (as UTF-8 string).
Whether an encrypt/decrypt operation is in progress.
Error from the last operation, if any.
Encrypt plaintext with the given key.
Decrypt ciphertext with the given key.
Generate a random 256-bit key (hex string).
Clear all reactive state.
Reactive state and methods returned by useEncrypt.
Example