jose-jwe-fmt - Man Page

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

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 <npmccallum@redhat.com>

See Also

jose-jwe-dec(1), jose-jwe-enc(1)

Referenced By

jose(1), jose-jwe-dec(1), jose-jwe-enc(1).

10/22/2024