Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

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

by 1nickt (Abbot)
on Aug 14, 2019 at 15:54 UTC ( #11104456=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104456]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2019-10-21 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?