Skip to content

Why is Encrypting an HMAC JWS/JWT redundant? #217

Answered by panva
daon asked this question in Q&A
Discussion options

You must be logged in to vote

What does that mean when you're both the issuer and recipient?

That means when I both produce and consume the tokens. I issue them for my own later use.

Why is Encrypting an HMAC JWS/JWT redundant?

Because you achieve all of Confidentiality, Integrity, and Authenticity with a direct or KW symmetric encryption. So, if you intend to encrypt a JWS that you both produce and consume, you may skip signing it with HMAC and simply encrypt it with your secret.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by daon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants