http://www.perlmonks.org?node_id=11104456


in reply to use Crypt::Eksblowfish::Bcrypt to create a password the same as password_hash in PHP

Hi again, I use Crypt::Eksblowfish::Bcrypt for password hashing, but only wrapped in Dancer2::Plugin::Passphrase, because I use the Dancer2 web application framework wherever possible. (What are you building on, btw?) So I am no expert at all, but the first place I would look is into what your PHP library is using for salting the hash.

Hope this helps!


The way forward always starts with a minimal test.
  • Comment on Re: use Crypt::Eksblowfish::Bcrypt to create a password the same as password_hash in PHP

Replies are listed 'Best First'.
Re^2: use Crypt::Eksblowfish::Bcrypt to create a password the same as password_hash in PHP
by DaisyLou (Sexton) on Aug 14, 2019 at 16:08 UTC
    According to https://www.php.net/manual/en/password.constants.php, it uses a random salt. I'm looking to do this for Apache basic authentication.