JOSE-JWE-FMT(1) JOSE-JWE-FMT(1) NAME jose-jwe-fmt - Converts a JWE between serialization formats SYNOPSIS 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 o -i JSON, --input=JSON : Parse JWE from JSON o -i FILE, --input=FILE : Read JWE from FILE o -i -, --input=-: Read JWE from standard input o -I FILE, --detached=FILE : Read decoded ciphertext from FILE o -I -, --detached=- : Read decoded ciphertext from standard input o -o FILE, --output=FILE : Write JWE to FILE o -o -, --output=- : Write JWE to stdout (default) o -O FILE, --detach=FILE : Detach ciphertext and decode to FILE o -O -, --detach=- : Detach ciphertext and decode to standard output o -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 AUTHOR Nathaniel McCallum SEE ALSO jose-jwe-dec(1), jose-jwe-enc(1) 11/01/2022 JOSE-JWE-FMT(1)