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
Could you please support the Bcrypt $2y$ password hash format. This format is used by PHP in it's password_hash() function which is commonly used in PHP and supporting the format would make migration of data from PHP a whole lot easier.
Activity
mworrell commentedon Oct 27, 2026
$2y$support has been added in #45Existing PHP hashes can be passed directly to
bcrypt:hashpw/2, which preserves the$2y$prefix.To generate a PHP-compatible hash:
{ok, Salt} = bcrypt:gen_salt(12, '2y'), {ok, Hash} = bcrypt:hashpw(<<"password">>, Salt).The resulting hash can be verified with PHP’s
password_verify().Existing
gen_salt/0,1calls generate$2b$salts by default.