Encrypt sensitive data
Encrypt sensitive fields using JWE (RFC 7516) before sending them to D1.
Examples of sensitive data encryption
Example: encrypt card credentials
JSON field
Description
Required
Length
{
"kty": "EC",
"kid": "ASDsL-Jx2XOkRnFtqW-QblWY-mDnQW2LgapadFx75tA",
"crv": "P-256",
"x": "UbInEqNbZZZ9SJptBwKTKO6qslSyuWvMkVK44Bx_d8U",
"y": "PUxeHMNVL0VRxOYJrkHcpe6sap7IG-Are0QborZDngI"
}Examples of sensitive data decryption
Last updated
Was this helpful?