Replies: 2 comments 3 replies
-
I'd say it would be better to use X25519
Or if you insist on EC, P-256, P-384, and P-521 curves are usable for ECDH too. |
Beta Was this translation helpful? Give feedback.
-
@panva I tried to use X25519 private in JWT signing.
I've tried many values on signing alg like "ECDSA", "ECDH-ES", "ES256", but it turns out no luck. How can I do the signature with a X25519 key or where can I get a reference for this? Thanks. (Plus I've read This Post) |
Beta Was this translation helpful? Give feedback.
-
Using Node.js v20.2.0
Generated the keys with
And the Exception shows when Doing a "GeneralEncrypt"
I got the alg/enc list from OpenID Page
What may be missing to use ec-keys to do the general encrypt?I found that RSA works but EC is prefered for security requirement.
Beta Was this translation helpful? Give feedback.
All reactions