This repository was archived by the owner on May 3, 2023. It is now read-only.
Why not HMAC? #3
Answered
by
BRAVO68WEB
JonasSchweigler
asked this question in
Q&A
-
Why are you are not using HMAC? Is there a particular reason. |
Beta Was this translation helpful? Give feedback.
Answered by
BRAVO68WEB
Jul 14, 2022
Replies: 2 comments
-
HI @JonasSchweigler , Using HMAC type Keys for JWTs makes them vulnerable and easy to manipulate as its just base64 encryption. Testing it out ...
Payload here -
Payload here -
So We should use RSA type Keys for generating JWT keys which are more secure. Hope I answered your query. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JonasSchweigler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HI @JonasSchweigler ,
Using HMAC type Keys for JWTs makes them vulnerable and easy to manipulate as its just base64 encryption.
Testing it out ...
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Payload here -
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODEyMzEyMyIsIm5hbWUiOiJKb2huIERvZSIsImlhdCI6MTUxNjIzOTAyMn0.ZVySjZDGuGci28UgGDSorzrkxcnHWBeC5DGevLNLj-E
Payload here -