Decrypt AES-GCM ciphertext produced by encrypt.
Expects format: iv (12 bytes) || ciphertext || tag
iv (12 bytes) || ciphertext || tag
Decryption parameters.
The decrypted plaintext bytes.
const plaintext = await decrypt({ key, ciphertext: encrypted.ciphertext }); Copy
const plaintext = await decrypt({ key, ciphertext: encrypted.ciphertext });
Decrypt AES-GCM ciphertext produced by encrypt.
Expects format:
iv (12 bytes) || ciphertext || tag