Handler for decrypting structured JSON data.
Note: Must be an async function. Decryption typically involves I/O operations (calling external KMS services), which should be async.
Inverse of JsonEncryptor. Must be able to decrypt data that was encrypted by the corresponding encryptor.
JsonDecryptor = Callable[[EncryptionContext, Json], Awaitable[Json]]| Name | Type | Description |
|---|---|---|
ctx* | unknown | Encryption context with model type, field name, and metadata |
data* | unknown | The encrypted JSON dictionary |