JOSE-JWE-FMT(1)

okay bestie, you're looking at jose-jwe-fmt(1) and it's literally the format-shifting friend in the jose crew πŸ’–βœ¨

🌸 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. πŸ”

No cap, it's giving "same JWE, different outfit" energy πŸ‘‘

πŸ’… 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

πŸ‘‘ AUTHOR πŸ‘‘

Shoutout to Nathaniel McCallum <npmccallum@redhat.com> β€” iconic behavior, fr fr πŸ’–

πŸŽ€ SEE ALSO πŸŽ€

Go peek at jose-jwe-dec(1) and jose-jwe-enc(1) too, bestie πŸ¦‹


xoxo, your Unix bestie β€” JOSE-JWE-FMT(1) Β· 06/09/2026 πŸŒˆπŸ’–

πŸ“¦ where this page comes from