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


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