You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library signs or hashes the JWT it does not offer an encrypted copy of the key. For these use cases the algorithms are asymmetric and irreversible and not vulnerable to known message attacks so long as the key is of sufficient complexity (NIST recommends 3072 bits as of 2021).
From what I can see, jwt-simple is not secure against chosen message attacks, why not use crypto.createCipheriv( algorithm, key, iv, options ) ?
Passing a random IV on each request ensures the key is secure.
The text was updated successfully, but these errors were encountered: