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

DaisyLou has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks

I want to create two passwords that are encrypted in the same way in Perl and PHP (so I can authenticate against them). In PHP, it's easy:

<?php echo "$2y$" . password_hash("mypassword", PASSWORD_BCRYPT); ?>

In Perl, not as easy. I've installed Crypt::Eksblowfish::Bcrypt, but can't figure out how to get it to provide the same hashed password as PHP. Any ideas?

Thank you in advance for your Perl wisdom.