ircmaxell / password_compat

Compatibility with the password_* functions that ship with PHP 5.5
MIT License
2.15k stars 421 forks source link

Bcrypt issue #113

Open newtron123 opened 1 year ago

newtron123 commented 1 year ago

I have tested this library for PHP 5.3.28 (I know requirement is >=5.3.7) end generated password / Hash is not validated by nodejs

miquelfire commented 1 year ago

I think you need to change the $2y$ at the beginning of the string to $2a$ to compare with non-PHP libraries.

Also, try to use a supported version of PHP (and not have a reason to use this library, as it's just a polyfill from later versions anyway)