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

Can we use Bcript.hash() to generate secret? #658

Open
jprumekso opened this issue Oct 29, 2021 · 0 comments
Open

Can we use Bcript.hash() to generate secret? #658

jprumekso opened this issue Oct 29, 2021 · 0 comments

Comments

@jprumekso
Copy link

I use the user's hashed password generated by Bcript.hash(password, 10) as totp secret. The thing is totp.check() isn't guaranteed to return true even if the token is right. Is that Bcrypt hashed secret the reason?

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