Compact JWE Encryption & Decryption
Encrypt or decrypt compact JWE with A256GCM and dir or RSA-OAEP-256.
How to use
Paste all five dot-separated parts when decrypting. With dir, the second part is empty, so the first two dots appear together.
FAQ
Where is the JWE payload decrypted?
The page decrypts and authenticates the compact JWE in the browser with your selected key. The JWE token and recovered plaintext stay on your device.
What is supported?
For dir, use a 32-byte Hex key. For RSA-OAEP-256, supply a JWK or PKCS#8 private / SPKI public PEM. The tool uses the supplied key and rejects payloads that fail authentication.
Other Languages
References
How we make sure
We check this tool with the automated test suites linked below. Example checks are shown in their original language.
- Verification method
- Independently decrypt compact dir/A256GCM output with Node AES-GCM including protected-header AAD; verify inverse decryption and wrong-key rejection. Decryption regression checks retain the original Base64 message selector while passing a compact JWE token.
- Comparison reference
- Node.js 24.22.1 crypto (OpenSSL 3.5.9) aes-256-gcm against jose 6.2.15; RSA-OAEP-256 JWE has no independent comparison in this test.
- Verification scope
- Covers compact A256GCM examples, wrong-key rejection and selected text and binary inputs. The tool uses supplied keys without remote lookup.
Test source and cases (select a file to read it)
-
completion-tools.test.js
- jwe-tool: compact dir A256GCM decrypts independently with Node
- JWS and JWE compact inputs ignore the message input selector during verification and decryption
- Secret fields start empty and fixed vectors are confined to the explicit example action
These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.