erlang-bcrypt icon indicating copy to clipboard operation
erlang-bcrypt copied to clipboard

Does not support "$2b$"?

Open dcy opened this issue 8 years ago • 1 comments

Hi!

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

The hash string is produced by comeonin

dcy avatar Dec 12 '17 06:12 dcy

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.

lenaw avatar Jun 24 '21 12:06 lenaw