Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Your Mother (Bishop)
on Aug 14, 2019 at 16:13 UTC ( #11104463=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

I don't think bcrypt works the way you think it does.

php -r 'echo "$2y$" . password_hash("mypassword", PASSWORD_BCRYPT) . " +\n";' $2y$$2y$10$Pq.17Hp0vw10lK0yngUt8ekXcJQCaqZIpX9dmPIReNcJtGv.GoGaK php -r 'echo "$2y$" . password_hash("mypassword", PASSWORD_BCRYPT) . " +\n";' $2y$$2y$10$cj/nikeT8n7LhGlXsDd5F.brT6CKrCNsF4yAQjFwbUmAnobWRhkW6
  • Comment on Re: use Crypt::Eksblowfish::Bcrypt to create a password the same as password_hash in PHP
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2020-11-24 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?