Skip to content

Conversation

@naivecrocus
Copy link

Hi, this PR proposes to move the hash generation and verification to separate functions and allow them to be overridden by the users via the new options generatePasswordHashAsync and verifyPasswordHashAsync. This makes it possible to use alternative hash functions (e.g., argon2), while the default behaviour is not changed and backwards-compatible. I also removed the "scmp" package and replaced it with the native crypto.timingSafeEqual function.

Please let me know the chances of this change being merged, I am happy to address any code reviews or feedback!

This should fix issues like #271, #298

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

Successfully merging this pull request may close these issues.

1 participant