Skip to content
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

Library not secure ? #104

Open
albertbuchard opened this issue Apr 21, 2022 · 1 comment
Open

Library not secure ? #104

albertbuchard opened this issue Apr 21, 2022 · 1 comment

Comments

@albertbuchard
Copy link

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.

@DevBrent
Copy link

DevBrent commented May 1, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants