jose-jwe-fmt1
Converts a jwe between serialization formats
Usage
jose jwe
fmt
-i
JWE
[-I
CT]
[-o
JWE]
[-O
CT]
[-c]
Overview
The jose jwe fmt command converts a JWE into alternative serialization formats. For example, it can:
1. Attach ciphertext to a detached JWE.
2. Detach ciphertext from a JWE.
3. Convert JWE Compact Serialization to JWE JSON Serialization.
4. Convert JWE JSON Serialization to JWE Compact Serialization.
Options
• -i JSON, --input=JSON : Parse JWE from JSON
• -i FILE, --input=FILE : Read JWE from FILE
• -i -, --input=-: Read JWE from standard input
• -I FILE, --detached=FILE : Read decoded ciphertext from FILE
• -I -, --detached=- : Read decoded ciphertext from standard input
• -o FILE, --output=FILE : Write JWE to FILE
• -o -, --output=- : Write JWE to stdout (default)
• -O FILE, --detach=FILE : Detach ciphertext and decode to FILE
• -O -, --detach=- : Detach ciphertext and decode to standard output
• -c, --compact : Output JWE using compact serialization
Examples
Attach ciphertext to a detached JWE and emit JWE Compact Serialization:
$ jose jwe fmt -i msg.jwe -I msg.ct -o compact.jwe -c
Detach ciphertext from a JWE:
$ jose jwe fmt -i msg.jwe -o detached.jwe -O detached.ct
Releases
5 releases since Debian 10 (Buster); the text changed 3 times.
--compact until Debian 11 (Bullseye);
--detach until Debian 11 (Bullseye);
--detached until Debian 11 (Bullseye);
--input until Debian 11 (Bullseye);
--output until Debian 11 (Bullseye);
-I until Debian 11 (Bullseye);
-O until Debian 11 (Bullseye);
-c until Debian 11 (Bullseye);
-i until Debian 11 (Bullseye);
-o until Debian 11 (Bullseye).