RSA-OAEP-256 not in SupportedAlgorithms.IsSupportedRsaAlgorithm()
See original GitHub issueI’m trying to decrypt a JWE + JWS token and here is the first part of the token :
eyJ6aXAiOiJERUYiLCJlbmMiOiJBMjU2Q0JDLUhTNTEyIiwiYWxnIjoiUlNBLU9BRVAtMjU2In0
which after a base64ToString is giving :
{"zip":"DEF","enc":"A256CBC-HS512","alg":"RSA-OAEP-256"}
The problem is that when I’m trying to decrypt the token it goes down to the method SupportedAlgorithms.IsSupportedRsaAlgorithm() but RSA-OAEP-256 isn’t listed and I can’t decrypt my token. Do you plan to support it any time soon or I’m missing something ?
Thanks !
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Untitled
Decrypt rsa-oaep-256 WebMay 2, 2023 · Webex is inherently secure by default, and we hold a main key for encrypting all your organization's...
Read more >Padding mode not valid when try do decrypt a JWE ...
You use the RSA-OAEP-256 algorithm to encrypt the content encryption key to the recipient to generate the JWE encryption key, and then use...
Read more >Key types, algorithms, and operations - Azure Key Vault
RSA-OAEP-256 – RSAES using Optimal Asymmetric Encryption Padding ... Keys created by the BACKUP operation are not usable outside Key Vault.
Read more >JSON Web Token (JWT) with RSA encryption
Use of this algorithm is generally not recommended due to a security ... The following example demonstrates RSA-OAEP-256 with A128GCM encryption of a...
Read more >authentication - In regard to using RSA-OAEP-256 in JWE ...
And the reason that RSA-OAEP-256 doesn't provide authenticity is that it's an asymmetric key algorithm, where the public key used for encryption ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 This was one of two issues I ran into in the question below (I will be updating the entry in the next 24 hours to reflect solution/workaround hopefully). https://stackoverflow.com/questions/68106472/decrypting-jsonwebtoken-using-jsonwebkey-or-jsonwebkeyset-in-c-sharp Since the alg does have cross-platform support in dotnet generally, it would be good to have: https://docs.microsoft.com/en-us/dotnet/standard/security/cross-platform-cryptography
I tried the work-around and it works for OAEP-256.
(AES-GCM decryption works fine without any change, so in the end I decided it wasn’t worth it to add support for AES-GCM encryption to the provider.)