Skip to Content
SdkReactInternalFunctionsdecryptDataWithKey

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

ParameterTypeDescription

encryptedHex

string

Encrypted data as hex string (IV + ciphertext + auth tag)

key

CryptoKey

The CryptoKey for AES-GCM decryption

Returns

Promise<string>

Decrypted data as string

Last updated on