decryptDataWithKey
decryptDataWithKey(
encryptedHex:string,key:CryptoKey):Promise<string>
Defined in: src/react/useEncryption.ts:597Â
Internal
Decrypts data using a pre-fetched CryptoKey. Use this for batch operations to avoid repeated key lookups.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
|
Encrypted data as hex string (IV + ciphertext + auth tag) |
|
|
|
The CryptoKey for AES-GCM decryption |
Returns
Promise<string>
Decrypted data as string
Last updated on