Skip to content

ezgh keys decrypt

Decrypt a ciphertext, from stdin or a file.

Updated View as Markdown
ezgh keys decrypt [--file path] [--context key=value]... [flags]

Decrypt a ciphertext read from stdin or --file. It names its own key, so there’s no key to give. The context must be the one it was sealed with. The plaintext goes to stdout, byte for byte; -o json gives it in base64, with the key’s ID.

Part of ezgh keys.

Examples

ezgh keys decrypt --context tenant=acme < token.enc

Flags

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
--file string read the ciphertext from this file instead of stdin

This command also takes the global flags.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close