You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Comeonin.Bcrypt in an Elixir app. I can compare hashes with salts generated by the bcrypt-ruby but bcrypt-ruby cant compare with those that was generated by Comeonin.Bcrypt.
Example:
"abcabc12345" => "$2b$10$li1IT3V0dEi4czS74rGL/.rObZhj6k5wAMtzWZVKZxgxVyKeXAMGC"
Only works with the Elixir lib.
If I use a salt generated by bcrypt-ruby everything works. What lib is wrong?
The answer to "is bcrypt-ruby working?" is almost certainly "yes", or else there'd be a lot more issues being filed :) Please share your specific Ruby code of what you're trying to do so we can see if we can help.
@tjschuck Can someone approve the PR's referenced by @yoogeeks? To the degree that bcrypt should be compatible with the current standards (2b, as I understand it, was released in 2014), it's definitely broken. If you're using it by itself, the problem won't be manifested. But if you're trying to interoperate, it's a problem. I fixed the same elixir compatibility issue by referencing glittershark's PR.
Activity
tjschuck commentedon Sep 22, 2015
The answer to "is bcrypt-ruby working?" is almost certainly "yes", or else there'd be a lot more issues being filed :) Please share your specific Ruby code of what you're trying to do so we can see if we can help.
yoogeeks commentedon Sep 8, 2016
Apparently$2a$ prefix. Open PRs for $2b$ and $2y$ hash versions : #80, #91
bcrypt-rubysupports onlyjeffdeville commentedon Sep 13, 2016
@tjschuck Can someone approve the PR's referenced by @yoogeeks? To the degree that bcrypt should be compatible with the current standards (2b, as I understand it, was released in 2014), it's definitely broken. If you're using it by itself, the problem won't be manifested. But if you're trying to interoperate, it's a problem. I fixed the same elixir compatibility issue by referencing glittershark's PR.
duane commentedon Jan 5, 2017
@tjschuck Is there any hope to get
$2b$working? It's been out since 2014; the pull to upgrade the backend has been open since 2013(!).