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

bcrypt is broken on canary version of deno #14700

Closed
ralyodio opened this issue May 22, 2022 · 4 comments · Fixed by #14930
Closed

bcrypt is broken on canary version of deno #14700

ralyodio opened this issue May 22, 2022 · 4 comments · Fixed by #14930

Comments

@ralyodio
Copy link

Use deno upgrade --canary and the bcrypt.compare(pw, hashed_pw) function no longer works on accounts created before upgrading. Accounts created using canary DO work.

If you downgrade back to 1.22 deno upgrade (remove --canary flag) older accounts can now login but newer accoutns created on --canary can NOT login anymore.

@neves
Copy link

neves commented Jun 21, 2022

Confirmed, 1.22.3 is the last working version

@cjihrig
Copy link
Contributor

cjihrig commented Jun 21, 2022

This may be related to #14900

@neves
Copy link

neves commented Jun 21, 2022

@JamesBroadberry
Copy link

Hey, yeah we've had an issue tracking what happened with it and remedial action to be taken. Either use Deno < 1.23.0 or use bcrypt 0.4.0 for now or the entire cipher gets bypassed due to a change with how the code is transpiled.

This issue has also been raised and fixed in the bcrypt repository.

JamesBroadberry/deno-bcrypt#27
JamesBroadberry/deno-bcrypt#28

Fixed in v0.4.0
https://github.com/JamesBroadberry/deno-bcrypt/releases/tag/v0.4.0

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 a pull request may close this issue.

4 participants