JOSE-JWE-DEC(1)
π JOSE-JWE-DEC(1) β the jose-jwe-dec page, bestie edition
okay so you opened the JOSE-JWE-DEC(1) manual section and now you're here β welcome, this is the one that teaches you how to decrypt a JWE using the supplied JWKs. grab a strawberry drink π and let's get into it.
β¨ NAME β¨
jose-jwe-dec β literally decrypts a JWE using the JWKs you hand it. that's the whole job. she's an icon, she's a decryptor π
πΈ SYNOPSIS πΈ
jose jwe dec -i JWE [-I CT] -k JWK [-p] [-O PT]
π¦ OVERVIEW π¦
so the jose jwe dec command decrypts a JWE using one or more JWK (-k) or a password (-p). and the vibe check here is: decryption succeeds if any key is able to perform decryption β she only needs one of your keys to work it out π«Ά
if the JWE is a detached JWE β meaning the ciphertext is stored in binary form external to the JWE itself β you can load that ciphertext with the -I parameter. no cap, that's what it's for β¨
β οΈ bestie please read this one: when you specify the -O option to output the plaintext, plaintext output begins before ciphertext validation. so you absolutely must check the return value of the command before using the data π like, do not trust that output until you've checked. periodt.
π 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 π-p,--passwordβ prompt for a decryption password, if necessary π-k FILE,--key=FILEβ read JWK(Set) from FILE ποΈ-k -,--key=-β read JWK(Set) from standard input π-O JSON,--detach=JSONβ parse JWE from JSON-O FILE,--detach=FILEβ read JWE from FILE-O -,--detach=-β read JWE from standard input
(yes, the -O descriptions are exactly what the page says β she said what she said π)
π EXAMPLES π
decrypt a JWE with a JWK β main character energy:
$ jose jwe dec -i msg.jwe -k rsa.key -O msg.txt
decrypt a JWE with a password β she'll ask you nicely:
$ jose jwe dec -i msg.jwe -p -O msg.txt
Please enter decryption password:
decrypt a JWE with either of two JWKs β options, we love to see it:
$ jose jwe dec -i msg.jwe -k ec.jwk -k rsa.jwk -O msg.txt
π AUTHOR π
Nathaniel McCallum <npmccallum@redhat.com> β thank you for your service π«‘π
π₯ SEE ALSO π₯
jose-jwe-enc(1), jose-jwe-fmt(1) β go read the siblings, iykyk β
and that's the whole page, bestie π₯³ this was JOSE-JWE-DEC(1) from the June 9, 2026 drop (that's 06/09/2026 for the calendar girlies), and yes it's the same JOSE-JWE-DEC(1) she's been the whole time π slay, go decrypt something π¦
π¦ where this page comes from
- arch rolling: jose 15-2 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms