-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Invalid argument on verify method #407
Comments
Found the issue! It's not possible to pass |
Great news! And congratulations on the project. |
@RodriAndreotti v0.40.3 has been published with a fix. Unfortunately, GitHub Actions is messing with me and I couldn't tag a release, but it's on NPM already so you can update on your project. Obrigado 😉 |
Hi, could you help me to understando something?
I have used this library in another project last year, and everything worked like a charm.
Today i install it in another project (with updated release) and face the following behavior.
Steps to reproduce
hash a password with following configs:
{ parallelism: 1, memoryCost: 64000, // 64 mb timeCost: 3, // number of itetations }
Try to verify this same password with
await argon2.verify(hash, Buffer.from(password), this.config);
Expected behaviour
The password could be verified successfully
Actual behaviour
When trying to verify password with previous generated hash the error
Invalid argument
occurs. This behavior happen only on 0.40+ versions, on version 0.31 everything works fine.Environment
Debian Trixie
Node version:
Node 22
The text was updated successfully, but these errors were encountered: