Function: decryptValue()
decryptValue(
args):string
Defined in: encryption.ts:59
Decrypts a value produced by encryptValue. Throws when the key is wrong
or the ciphertext was tampered with (GCM authentication failure).
Parameters
| Parameter | Type | Description |
|---|---|---|
args | { ciphertext: string; key: string; } | - |
args.ciphertext | string | - |
args.key | string | 32-byte key, hex encoded (64 characters). See generateEncryptionKey. |
Returns
string