JOSE-JWE-ENC(1) JOSE-JWE-ENC(1) (NAME) jose-jwe-enc - JWK/ (SYNOPSIS) jose jwe enc [-i JWE] -I PT -k JWK [-p] [-r RCP] [-o JWE] [-O CT] [-c] (OVERVIEW) jose jwe enc JWK (-k) (-p) . JWK . -O JWE (detached) . JWE . (-k -p) JWE -c JWE (Compact Serialization) . JWE . JWE (-i) JWE (-r) . . JWE (Protected Header) . . JOSE ( -i -r) JWE . <> JWE . jose JOSE <> <> <> ( .. RFC 7516 ) ( RFC 7518 ) . : jose jwe enc (JWK ) <> <> . -i -r JWE . (OPTIONS) o -i JSON, --input=JSON : JWE JSON o -i FILE, --input=FILE : JWE FILE o -i -, --input=-: JWE o -I FILE, --detached=FILE : FILE o -I -, --detached=- : o -r FILE, --recipient=FILE : JWE FILE o -r -, --recipient=- : JWE o -k FILE, --key=FILE : JWK(Set) FILE o -k -, --key=- : JWK(Set) o -p, --password : o -o FILE, --output=FILE : JWE FILE o -o -, --output=- : JWE stdout () o -O FILE, --detach=FILE : (ciphertext) FILE o -O -, --detach=- : (ciphertext) o -c, --compact : JWE (compact serialization) (EXAMPLES) JWE JSON Serialization: $ jose jwk gen -i '{"alg":"A128GCM"}' -o key.jwk $ jose jwe enc -I msg.txt -k key.jwk -o msg.jwe JWE Compact Serialization: $ jose jwe enc -I msg.txt -p -c -o msg.jwe Please enter an encryption password: Please re-enter the previous password: (plaintext) : $ jose jwe enc -i '{"protected":{"zip":"DEF"}}' ... : $ jose jwk gen -i '{"alg":"ECDH-ES+A128KW"}' -o ec.jwk $ jose jwk gen -i '{"alg":"RSA1_5"}' -o rsa.jwk $ jose jwe enc -I msg.txt -p -k ec.jwk -p -k rsa.jwk -o msg.jwe Please enter a password: Please re-enter the previous password: Please enter a password: Please re-enter the previous password: Nathaniel McCallum (SEE ALSO) jose-jwe-dec(1), jose-jwe-fmt(1) 06/09/2026 JOSE-JWE-ENC(1)