Score:0

What is difference between Payload -> Sign (JWE) -> Encrypt (JWE) vs Payload -> Encrypt (JWE)-> Sign (JWE)?

ru flag

In RSA® Adaptive Authentication for eCommerce specification, the below flows are described.

Payload -> Sign (JWS) -> Encrypt (JWE) | Decrypt -> Verify -> Payload

Payload -> Encrypt (JWE) -> Sign (JWS) | Verify -> Encrypt -> Payload

As per my understanding end result is same. Authenticity, Data Integrity and Confidentiality are achieved in both the flows.

Am I missing something?

JSON Web Encryption (JWE) https://www.rfc-editor.org/rfc/rfc7516

JSON Web Signature (JWS) https://www.rfc-editor.org/rfc/rfc7515

Maarten Bodewes avatar
in flag
If anything is unclear from the question marked as duplicate then please make your question more specific or ask another question. Marking things as dupe mainly serves to you and other users that an answer has already been written, and [se] generally prefers improving answers over regenerating them a la Quora.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.