smarkets / erlang-bcrypt

Erlang wrapper for OpenBSD's Blowfish password hashing code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not support "$2b$"?

dcy opened this issue · comments

commented

Hi!

56> bcrypt:hashpw("12456", "$2b$12$j4P7eTvx7x2F.wj6HORIzetQmoegqZ1xo0B2jo/XNABgN5lMWswMi"). 
{error,"bcrypt failed"}

The hash string is produced by comeonin

commented

I am also trapped by this because I didn't know it does not supports $2b$, luckily I found one fork that has support for both $2b and $2y, comment here in case someone is also looking for a fix.