What is JWE, and why does it come up in post-quantum planning?
You most likely met JWE (JSON Web Encryption) in a vendor document, a tender response or an audit request asking whether an API or token format can carry post-quantum key management. JWE is the encrypted and integrity-protected message structure defined in RFC 7516, "JSON Web Encryption (JWE)", published in May 2015 as a Proposed Standard by M. Jones and J. Hildebrand. It is the encryption counterpart of JWS (JSON Web Signature): where JWS proves who signed a payload, JWE hides the payload from anyone who does not hold the decryption key. Engineers and reviewers meet JWE wherever JOSE-based APIs, tokens or encrypted payloads are in use, including systems where a JWT (JSON Web Token) is carried as the JWE plaintext. The specification's own text gives the basic shape: a JWE is a data structure representing an encrypted and integrity-protected message, and it can be written in a compact form with five base64url-encoded parts or in a JSON form that supports multiple recipients.
For post-quantum work, the point to know is where the key management step sits. In JWE, the alg header parameter names the algorithm that encrypts the content encryption key or determines it, while the enc parameter names the AEAD algorithm that encrypts the content. The algorithms registered for alg in RFC 7518 are classical today, such as RSA-OAEP, ECDH-ES and the AES key wrap variants. A post-quantum migration question for JWE is therefore about key management, not about the content cipher. The draft draft-ietf-jose-hpke-encrypt-22 updates RFC 7516 to add HPKE-based modes: Integrated Encryption, where HPKE encrypts the plaintext directly, and Key Encryption, where HPKE encrypts the content encryption key. Both modes support base and pre-shared key operation. At the time of the sources, that draft had not yet been published as an RFC, so the identifiers it defines may change before publication.
When a vendor or auditor asks about JWE, confirm three things: which alg values the product actually accepts and emits, whether any HPKE-based identifiers are supported in the version you run, and whether the product's tooling tracks the draft or a published RFC. Also check whether signed tokens in the same stack use JWS or COSE. The sources do not state which JOSE libraries or products implement the HPKE modes, so ask the vendor for their implementation status and version rather than assuming support. Your own inventory should record every JWE use, the alg and enc values in production, and the recipients involved, so that a later move to HPKE-based identifiers can be scoped against a known baseline.
Which names and identifiers refer to JWE?
This table lists the names, serializations, header parameters and HPKE identifiers that appear in JWE documents and configuration. Use it to match a term you have seen in a vendor document, library or specification to the part of JWE it refers to. Note that the HPKE identifiers come from a draft, not a published RFC, and that HPKE-4-KE and HPKE-6-KE were removed in revision -22.
| Name or identifier | What it refers to | Where it appears | Status or note |
|---|---|---|---|
| JSON Web Encryption (JWE) | The full name of the encrypted message data structure | RFC 7516 and vendor documentation | Published as RFC 7516 in May 2015, Proposed Standard |
| JWE | Abbreviation for JSON Web Encryption | Tender responses, configuration files and audit requests | Same object as the full name, no separate meaning |
| RFC 7516 | The base specification that defines the JWE structure and both serializations | IETF document referenced by libraries and standards text | The reference to read first for the core format |
| draft-ietf-jose-hpke-encrypt-22 | Extension that uses HPKE with JWE, adding Integrated Encryption and Key Encryption modes | IETF draft cited in HPKE-based JWE work | Draft dated 6 July 2026, in the RFC Editor queue as of 4 December 2026, not yet an RFC |
| Compact Serialization | Single-recipient form with five base64url-encoded parts | Compact tokens and API payloads | Defined in RFC 7516, supports one recipient only |
| JSON Serialization | Form that can carry multiple recipients (general) or one recipient (flattened) | JSON-structured encrypted payloads | Defined in RFC 7516, required for multi-recipient use |
| alg header parameter | Names the algorithm that encrypts or determines the Content Encryption Key | JWE protected header | Values are registered in RFC 7518, for example RSA-OAEP and ECDH-ES |
| enc header parameter | Names the AEAD algorithm that encrypts the content | JWE protected header | Values are registered in RFC 7518, for example A128GCM and A256GCM |
| HPKE-0 to HPKE-7 | Integrated Encryption alg identifiers, where HPKE encrypts the plaintext directly and enc is omitted | Headers in draft-ietf-jose-hpke-encrypt-22 | Defined in the draft, not in a published RFC |
| HPKE-0-KE to HPKE-7-KE (-KE suffix) | Key Encryption identifiers, where HPKE encrypts the Content Encryption Key | Headers in draft-ietf-jose-hpke-encrypt-22 | HPKE-4-KE and HPKE-6-KE were removed in revision -22 |
Where practitioners meet JWE in applications and vendor documents
JWE shows up in application token handling, identity systems, libraries, vendor security documentation, tender questions and audit requests. Each of these places asks a different question about the same thing: which encryption algorithms are configured, and whether they can be inventoried and upgraded.
API and web token handling
Applications that issue or accept encrypted JSON Web Tokens use JWE to protect claims while the token travels. Check the alg and enc values in the protected header, since these identify the key management and content encryption algorithms in use. A JWT carried inside JWE is still a claims set, so the encryption layer must be inventoried separately from the signature layer.
Identity systems issuing encrypted tokens
Identity and access products can be configured to issue encrypted tokens to relying parties. Ask the vendor which JWE algorithms the issuer can emit, whether that list is fixed or set by configuration, and whether the relying party must support the same values. Configuration keys and token settings differ by product, so confirm them against the vendor's own documentation for the version you run.
Libraries implementing RFC 7516
Libraries that implement the JOSE specifications are where the algorithm list is actually enforced. Check which alg and enc values the library accepts by default, which it rejects, and whether it allows none or weak choices. Library versions vary, so a vendor claim about support should be matched to the specific library release in your build.
Vendor security documentation
Vendor security documents often list supported JOSE algorithms, sometimes by name and sometimes only by category. Read the list against the JWA registry values in RFC 7518 and note whether the vendor refers to JWE, JWS or both. A list of supported algorithms does not show which ones are enabled by default or what your tenant actually uses, so ask for the configured values.
RFC 7518 textTender questions on JOSE encryption
Tenders and vendor questionnaires may ask whether a product supports JOSE encryption or which algorithms it uses to protect tokens. Answer in terms of the specific alg and enc identifiers and the version tested, not with a general claim of support. Do not accept a yes or no answer that is not tied to a named configuration, and ask for the evidence the vendor relies on.
Audit requests on configured JWE algorithms
Audit requests may ask which JWE algorithms are configured in production and where that configuration is set. Prepare an inventory that records the protected header values, the libraries and their versions, and the systems that issue or accept the tokens. The inventory should show what is configured, not what the software is capable of, and the auditor's own criteria govern any conclusion drawn from it.
How does JWE protect content in a system?
JWE protects content by wrapping it in one of two serializations, and the choice decides how many recipients a single message can reach. The Compact Serialization is a single string of five base64url-encoded parts: the protected header, the encrypted key, the initialization vector, the ciphertext and the authentication tag. RFC 7516 limits the Compact Serialization to one recipient. The JSON Serialization carries the same kind of content but can encrypt it to several recipients at once, using a general form with a recipients array or a flattened form for a single recipient. Engineers reviewing an integration should check which serialization a service emits and whether it can handle the other one, since parsers often accept only one. The JWT is a claims set that may serve as the JWE plaintext, so an encrypted token is a JWE whose payload is a JWT.
Two header parameters tell the receiver how the protection works. The alg parameter names the key management algorithm, which either encrypts the content encryption key directly or determines it. The enc parameter names the AEAD algorithm that encrypts the content itself. RFC 7518 lists the recommended and required values for both, so a reviewer can compare what a service emits against the registry. Algorithm identifiers are the part of a JWE most likely to change during a post-quantum migration, because the key management step is where a future algorithm would be negotiated. Confirm which alg and enc values each production service accepts and rejects, and whether the RFC 7518 registry entries it uses are the ones its vendor documentation names.
Post-quantum work also touches JWE through the HPKE-based drafts. draft-ietf-jose-hpke-encrypt-22 would add an Integrated Encryption mode, in which HPKE directly encrypts the plaintext and the enc header is omitted, along with a Key Encryption mode in which HPKE encrypts the content encryption key. As of 4 December 2026 the draft was waiting in the RFC Editor queue, so it has no RFC number and implementations should not assume its identifiers are final. Ask vendors whether they plan to support these identifiers, and whether they would treat them as stable before publication. RFC 9864 deprecates polymorphic algorithm identifiers in favor of fully specified ones, so confirm which form a vendor uses before comparing configurations.
Is JWE standardized, and is its HPKE extension final?
JWE itself is standardized. RFC 7516, JSON Web Encryption (JWE), was published in May 2015 as a Proposed Standard by M. Jones and J. Hildebrand. The algorithm values it relies on are registered in JSON Web Algorithms (JWA), which is RFC 7518, also published in May 2015 as a Proposed Standard. RFC 7518 was later updated by RFC 9864 in October 2025, which defines fully-specified algorithm identifiers and deprecates polymorphic ones. For a migration inventory, this means that the alg and enc values in your JWE tokens should be checked against the current registry and against RFC 9864, not against the 2015 text alone. Confirm which identifiers your libraries emit before treating any of them as the reference set.
The HPKE extension is not yet final. draft-ietf-jose-hpke-encrypt-22, Use of Hybrid Public Key Encryption (HPKE) with JSON Web Encryption (JWE), is dated 6 July 2026 and is a Standards Track JOSE Working Group draft that updates RFC 7516. It adds Integrated Encryption and Key Encryption modes, with identifiers such as HPKE-0 through HPKE-7 and the -KE suffixed variants. As of 4 December 2026, its IETF Datatracker state was RFC Ed Queue, Awaiting Editor Assignment, and it had no RFC number. Until an RFC number is assigned, treat the identifiers as draft values that may change, and check the Datatracker page for the current state before relying on them in a vendor answer or tender response.
HPKE itself is described in RFC 9180, Hybrid Public Key Encryption, published in February 2022 as an Informational RFC from the IRTF Crypto Forum Research Group. Informational status means it documents the scheme rather than setting an IETF Standards Track requirement for JOSE use. When a vendor says its JWE support uses HPKE, ask which draft or RFC version it implements, whether it follows the -22 identifiers or an earlier revision, and whether it supports the base and PSK operation modes the draft describes.
What should a team check in a JWE migration?
This sequence establishes what JWE usage exists across the environment, which identifiers and libraries each side supports, and how the HPKE-based modes fit the team's plans. It ends with interoperability evidence from a non-production peer, so any change to alg values is made against tested behavior.
Inventory every JWE issuer and consumer
Start by listing each service, job, gateway and client that creates or reads a JWE, including services you run and services a vendor operates for you. For each one, record the alg and enc header values it produces and accepts, and whether it uses Compact or JSON Serialization. The step is complete when the inventory covers every JWE producer and consumer you can find in code, configuration and vendor integrations, with each row showing the observed alg and enc values.
Map identifiers to library support
For each library and version in the inventory, check whether it supports the RFC 7518 identifiers already in use, such as RSA-OAEP, RSA-OAEP-256, ECDH-ES, the ECDH-ES key-wrap variants, and the A128GCM and A256GCM content algorithms. Then check whether it recognizes any HPKE identifiers. Record the library name, version and the supported identifiers in the inventory. The step is complete when each library entry states what it supports, and any gap is marked for follow-up.
Check HPKE mode status against your roadmap
Confirm whether the HPKE modes in draft-ietf-jose-hpke-encrypt are on your libraries' roadmaps. Record that the draft is a Standards Track document still awaiting publication as an RFC, so identifiers may change before it is final. Note which of the two modes you would need: Integrated Encryption, where the enc header is omitted, or Key Encryption, where HPKE wraps the content encryption key. The step is complete when the roadmap item, the library owner's answer and the draft's status are written down together.
Ask vendors about their JWE algorithms
Send each vendor whose products issue or consume JWE a written question asking which JWE alg values and key sizes they use, and whether they rely on RSA-OAEP or ECDH-ES. Ask for the answer in writing with the product and version it applies to. Compare the responses with your inventory and note any mismatch. The step is complete when every relevant vendor has answered in writing for a named product version, and each answer is filed against the matching inventory rows.
Identify mode and identifier differences
Before changing any alg value, check that your team understands the difference between Integrated Encryption and Key Encryption identifiers. The draft defines HPKE-0 through HPKE-7 for Integrated Encryption and suffixed -KE identifiers for Key Encryption, and it reports that HPKE-4-KE and HPKE-6-KE were removed in revision -22. Write down which identifier family each planned change would use, so the peers can agree on it. The step is complete when the team has a written list of planned identifiers and the mode each one belongs to.
Test interoperability with a non-production peer
Before changing alg values in production, set up a non-production peer that runs the same library versions and exchange test JWEs in both directions. Verify that each side accepts the other's alg, enc and header values, and that failures produce clear errors rather than silent fallbacks. Record the library versions, identifiers and results. The step is complete when a round trip succeeds for each planned identifier, and any failure has an owner and a fix before production work begins.
Record evidence and confirm the rollout order
Collect the inventory, library matrix, vendor answers, mode decisions and interoperability results into one document that your security and compliance reviewers can check. Agree with each consumer which side changes first, so that receivers can accept new identifiers before senders produce them. The step is complete when the document is signed off by the owners of each affected service and the rollout order is recorded.
Which JWE confusions cause mistakes in reviews and tenders?
JWE is easy to mix up with neighboring JOSE terms, and several of the post-quantum drafts that touch it use similar names at different stages. The cards below cover the confusions that most often lead to wrong answers in vendor reviews, tender responses and audit notes.
JWE is not JWS
JWE provides encryption and integrity for the content, while JWS provides signing. A vendor saying it supports JOSE does not tell you whether it encrypts payloads, signs them, or both. When reviewing a JWE claim, ask which operation the product performs and which algorithms appear in the alg and enc headers. Keep the encryption question separate from the signature question in your checklist.
RFC 7516 textA signed JWT is not a JWE
A JWT is a claims set, and it may be signed (JWS), encrypted (JWE), or both. Many JWTs in production are only signed, so their payload is readable by anyone holding the token. Treating a JWT as encrypted because it is a JWT can lead to incorrect data-protection statements. Check whether the token's structure is a JWS or a JWE before describing its confidentiality.
RFC 7519 textHPKE draft is not an RFC
The HPKE-for-JWE work is an Internet-Draft that has not been published as an RFC. The draft's datatracker page showed it awaiting editor assignment in the RFC Editor queue, with no RFC number as of December 2026. Base HPKE is RFC 9180, which is a separate, published document. Cite the draft as a draft, and confirm the status on the IETF datatracker before treating its identifiers as settled.
IETF datatracker entryHPKE-n and -KE identifiers differ
HPKE-n identifiers select Integrated Encryption, while identifiers with the -KE suffix select Key Encryption. In Integrated Encryption, HPKE encrypts the plaintext directly, and the enc header is omitted. In Key Encryption, HPKE wraps the content encryption key. Reviewers should check which mode a product uses, because the two identifier families describe different message structures and are not interchangeable.
Draft revision 22ML-DSA sizes are not JWE sizes
RFC 9964 gives byte sizes for ML-DSA keys and signatures, and those sizes apply to signing, not to JWE encryption. A reviewer who reads the table and expects the same growth in encrypted payloads will size storage and bandwidth wrongly. Any size estimate for JWE should come from the algorithms actually used in the alg and enc headers, and from the product's own documentation for the version it runs.
RFC 9964 textJOSE support is not PQ key management
A library or product that supports JOSE serializations does not show that it manages post-quantum keys. Key generation, storage, rotation and hardware protection are separate capabilities, and the JOSE layer does not supply them. Ask the vendor which post-quantum key types it generates, where private keys are held, and how rotation works. Treat a general JOSE statement as the start of the question, not the answer.
What do people search about JWE?
What does JWE stand for?
JWE stands for JSON Web Encryption. It is the data structure defined in RFC 7516 for representing an encrypted and integrity-protected message. The name follows the JOSE family naming: JWS (JSON Web Signature) covers signing, and JWE covers encryption. In practice, a JWE appears as a string of base64url-encoded parts separated by periods in the Compact Serialization, or as a JSON object in the JSON Serialization. Engineers meeting the term in a vendor document or configuration file should check which serialization is in use, because the two carry different structures and support different numbers of recipients.
Is JWE the same as JWS or JWT?
No. JWE is the encryption counterpart of JWS (JSON Web Signature), so JWE provides confidentiality and integrity while JWS provides signing. A JWT (JSON Web Token) is a claims set, and per RFC 7519 that claims set may be carried as the plaintext of a JWE or as the payload of a JWS. A token can therefore be signed, encrypted, both, or neither, depending on how it is built. When a vendor says a token is a JWT, the reader should ask whether it is signed, encrypted, or nested, since the algorithms and key handling differ for each.
Is JWE standardized, and under which RFC?
Yes. JWE is defined in RFC 7516, "JSON Web Encryption (JWE)," published in May 2015 as a Proposed Standard by M. Jones and J. Hildebrand. The algorithm identifiers used with JWE, such as the alg and enc values, are registered in RFC 7518 (JSON Web Algorithms), which was published in the same month and has since been updated by RFC 9864. Reviewers asking whether a product uses standard JWE should confirm both the serialization and the algorithm identifiers it supports, not just that it claims JWE compliance.
Can HPKE be used with JWE, and what is the status?
HPKE can be used with JWE, but the specification is still a draft. The draft draft-ietf-jose-hpke-encrypt-22, titled "Use of Hybrid Public Key Encryption (HPKE) with JSON Web Encryption (JWE)," dated 6 July 2026, defines two modes: Integrated Encryption, where HPKE encrypts the plaintext directly and the enc header is omitted, and Key Encryption, where HPKE encrypts the content encryption key. As of 4 December 2026, the IETF Datatracker showed the draft in the RFC Editor queue, awaiting editor assignment, with no RFC number yet. Teams should treat HPKE-based JWE identifiers as not yet final and confirm the exact draft revision a vendor implements.
What changes for teams already using RSA-OAEP or ECDH-ES?
Teams already using RSA-OAEP or ECDH-ES in JWE keep the same JWE structure, but the key management step is where post-quantum planning touches the format. RFC 7518 lists RSA-OAEP and ECDH-ES as Recommended+ alg values, and RSA-OAEP-256 as Optional. The HPKE draft describes an alternative in which HPKE replaces the key management step, using identifiers such as HPKE-3-KE for a key encryption mode. Teams should inventory which alg values they use, check whether their libraries support the newer identifiers, and confirm with each vendor how, and whether, post-quantum key encapsulation will be carried in the header. Whether existing RSA-OAEP or ECDH-ES deployments need replacing is a question for the team's own risk assessment and the standards and guidance their sector follows.
What should I ask a vendor about JWE algorithms?
Ask which JWE serialization the product produces and accepts, and which alg and enc values it supports. Request the exact list, and confirm whether any values are based on the HPKE draft, since its identifiers are not yet an RFC. Ask which JWA registry version and RFC 9864 fully-specified identifier rules the product follows. If the product signs with ML-DSA, ask whether it follows RFC 9964, which registers ML-DSA-44, ML-DSA-65 and ML-DSA-87 as optional JOSE alg values. Ask for the library and version used, and how the vendor will communicate changes to algorithm support. Confirm the answers in writing and test them against the specific version you run.
How big are JWE and ML-DSA keys and signatures?
Sizes depend on the algorithm and the serialization, so check each value rather than assuming one. For ML-DSA signatures in JOSE, RFC 9964 Table 1 gives sizes in bytes for the private key, public key and signature. ML-DSA-44 uses 2560, 1312 and 2420 bytes, ML-DSA-65 uses 4032, 1952 and 3309 bytes, and ML-DSA-87 uses 4896, 2592 and 4627 bytes, with the private key parameter always a 32-byte seed. Larger signatures and keys increase token size, which matters for header limits and storage. JWE sizes will also grow with the key management method, so teams should measure real tokens in their own environment before committing to a design.
How DeployOpen works on this
DeployOpen helps engineering and security teams work out where JWE is used in their systems and what a move to newer JOSE algorithm identifiers and HPKE-based modes would touch. We scope the work in writing, build and test changes inside your own infrastructure, and hand over the configuration and documentation your reviewers need.
How we scope
- We list the services and libraries that produce or consume JWE tokens, including the alg and enc values each one uses today.
- We agree the scope and deliverables in writing before work starts, so the boundaries of any JWE change are clear to everyone.
- We check which JOSE identifiers your clients and partners support, since draft HPKE-based JWE modes are not yet published as RFCs.
How we build
- We deploy and configure the self-hosted platforms that issue or decrypt JWE payloads, inside your own cloud or data center.
- We test key-management and content-encryption settings against your scoped use cases, and record what each setting changes.
- We run security testing on the JWE handling path, including the libraries and endpoints that parse incoming encrypted tokens.
How we hand over
- We document each JWE and JOSE configuration, including algorithm choices, key locations and the reasons for each decision.
- We provide an inventory of JWE usage, so your security and compliance reviewers can check the scope against their own records.
- We deliver the documentation and evidence your auditors need, while independent auditors remain the ones who issue any report.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer once the initial changes are in place.
- We help you confirm library versions and algorithm support when new JOSE or HPKE-related documents are published.
- Ask us to confirm the exact versions and identifiers your partners accept before any JWE change goes live.

