dvsekhvalnov / jose-jwt

Ultimate Javascript Object Signing and Encryption (JOSE), JSON Web Token (JWT) and Json Web Keys (JWK) Implementation for .NET and .NET Core
MIT License
921 stars 183 forks source link

Need adding support for RSA_OAEP_512 support in encryption #245

Open Marks1 opened 2 months ago

Marks1 commented 2 months ago

HI there

when i use JWT.Encode() to encrypt payload, i set JweAlgorithm, but i can only set it to JweAlgorithm.RSA_OAEP_256, since RSA_OAEP_512 is more secure, do we have plan to support in the future?

thanks

dvsekhvalnov commented 2 months ago

Hi @Marks1 , yeah can consider this.

It will require .net 4.6+ according to docs: https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.rsaencryptionpadding.oaepsha512

Any library you'd like to interop with? Need to find some for cross-validation anyway.

dvsekhvalnov commented 1 month ago

Generated some test cases from Nimbus library, want to pick it up for next release.