-
Notifications
You must be signed in to change notification settings - Fork 186
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
authentication tag mismatch #99
Comments
Hi @ravenet , tag mismatch - usually means signature doesn't match payload. (E.g. corrupted or tampered). For troubleshooting can you add little bit more info? Like example of token you trying to decode and keys? (Well assuming that's not production used keys). |
Hi Dvsekhvalnov, https://gist.github.com/ravenet/46feeace86d683df90f3956aba96fe21 Here is all detail in code and please let me know if you require any more details. Thank you |
@ravenet , i'm getting same when trying to decode your nested encrypted token, it looks nested token is changed after encryption, that's why it is not passing. So:
|
Hi, Thank you and let me share with you and any idea why it is nested? and in test methods which one is suitable for this case. Thank you |
Sure @ravenet , go for it. |
Closing due to inactivity. Feel free to reopen. |
I'm encrypting, then immediately I'm decrypting, but I keep getting this error Jose.EncryptionException: 'Unable to decrypt content or authentication tag do not match.' |
This is the link to the code write-up |
Hi @Dhazan1, mind open new ticket? i'll try to take a look. |
New ticket opened |
Hi,
First I would like to thank for nice library, but When I use JWE to decrypt data, I am gettting above error.
my method,
MethodOne(string chiperText, JweAlgorithm algorithm = JweAlgorithm.RSA1_5, JweEncryption encryption = JweEncryption.A128GCM)
{
//Where I am passing data
Jose.JWT.Decode(chiperText.Trim(), keyHolderInfo.PrivateKey, algorithm, encryption)
}
Please advice why i am getting that error.
Thank you
The text was updated successfully, but these errors were encountered: