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 properly check if an encoded hash can be verified? #5

Open
PinkieSwirl opened this issue Nov 2, 2019 · 0 comments
Open

How to properly check if an encoded hash can be verified? #5

PinkieSwirl opened this issue Nov 2, 2019 · 0 comments

Comments

@PinkieSwirl
Copy link

Currently I'm doing the following to check if the an encoded hash/password can be verified:
verifier.hash(encodedHash).verifyEncoded()
Since I have different encoders (not just argon2).

However this seems overkill and also may throw an exception for other reasons (e.g., empty password).

So my question is if there currently is a better way to achieve this trough the provided API? Or do you recommend implement a check myself (e.g., something like startsWith...)?

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

1 participant