logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

jose-jwe-fmt - Converts a JWE between serialization formats

Author

       Nathaniel McCallum npmccallum@redhat.com

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

Name

       jose-jwe-fmt - Converts a JWE between serialization formats

Options

-iJSON, --input=JSON : Parse JWE from JSON

       •   -iFILE, --input=FILE : Read JWE from FILE

       •   -i -, --input=-: Read JWE from standard input

       •   -IFILE, --detached=FILE : Read decoded ciphertext from FILE

       •   -I -, --detached=- : Read decoded ciphertext from standard input

       •   -oFILE, --output=FILE : Write JWE to FILE

       •   -o -, --output=- : Write JWE to stdout (default)

       •   -OFILE, --detach=FILE : Detach ciphertext and decode to FILE

       •   -O -, --detach=- : Detach ciphertext and decode to standard output

       •   -c, --compact : Output JWE using compact serialization

Overview

       The josejwefmt 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.

See Also

jose-jwe-dec(1) <jose-jwe-dec.1.adoc>, jose-jwe-enc(1) <jose-jwe-enc.1.adoc>

                                                                                                 JOSE-JWE-FMT(1)

Synopsis

josejwefmt -i JWE [-I CT] [-o JWE] [-O CT] [-c]

See Also