ezgh keys generate-data-key <key> [--context key=value]... [flags]Make a 32-byte data key. Encrypt your data with its plaintext (base64), store its ciphertext beside the data, and discard the plaintext; ezgh keys decrypt opens the ciphertext when you need it again.
Part of ezgh keys.
Examples
ezgh keys generate-data-key alias:orders --context tenant=acme -o jsonFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--context |
string, repeatable | encryption context; opening it needs the same one, key=value; repeat for more | |
--context-file |
string | encryption context; opening it needs the same one, from a file holding a JSON object of strings |
This command also takes the global flags.