-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why I modify genernated jwt a word, but verifier still success #211
Comments
TL;DR: This is just how Base64 encoding/decoding works. Even after your modification, actual bytes of the signature are not changed and so it is still valid. Also, I should note, that the Details for the curious reader: The last quadruplet¹ of this particular signature is out[63] = (byte) (decodeMap['P'] << 2) | (decodeMap['w'] >> 4)); and the padding (two Now, This means, that the base64 encoded string ¹ — 4 characters that represent four 6-bit groups encoding 3 bytes. |
Closing this as there does not appear to be actionable work for the JJWT project. If you have questions (as opposed to known actionable work), please use StackOverflow.com and use the |
`
`
The text was updated successfully, but these errors were encountered: