Skip to main content

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

ParameterTypeDescription
args{ ciphertext: string; key: string; }-
args.ciphertextstring-
args.keystring32-byte key, hex encoded (64 characters). See generateEncryptionKey.

Returns

string