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

How to verify an Argon2 Hash? #7

Closed
ibudisteanu opened this issue Nov 25, 2017 · 4 comments
Closed

How to verify an Argon2 Hash? #7

ibudisteanu opened this issue Nov 25, 2017 · 4 comments

Comments

@ibudisteanu
Copy link

How do you verify an Argon2 Hash with this library in the browser?

@antelle
Copy link
Owner

antelle commented Nov 25, 2017

Hi! There's no way to do it with the current setup.
If you need verify function, you can add it here: https://github.com/antelle/argon2-browser/blob/master/build-wasm.sh#L8, to EXPORTED_FUNCTIONS list. However I haven't tested it, maybe some fixes will be required.

@antelle antelle closed this as completed Nov 25, 2017
@Nantris
Copy link
Contributor

Nantris commented Dec 3, 2018

@antelle - Is there any chance of seeing plain old JavaScript, or WASM support for hash verification in this repo without forking?

Seems like the last missing piece to a perfect, browser-friendly Argon2 implementation.

@antelle
Copy link
Owner

antelle commented Dec 3, 2018

Added argon2-verify in v1.5.0, here's an example:

argon2.verify({ pass: 'password', encoded: 'enc-hash' })
    .then(() => console.log('OK'))
    .catch(e => console.error(e.message, e.code))

@Nantris
Copy link
Contributor

Nantris commented Dec 3, 2018

If all my Github issues were resolved as quickly as the ones in this repo I'd be a year ahead of schedule!

Thank you @antelle!

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

3 participants