With PHP, I’m trying to emulate the Perl functionality of:
#!/usr/bin/perl
use DBI;
use Crypt::ECB qw(encrypt decrypt encrypt_hex decrypt_hex);
$code = encrypt_hex($key, "Blowfish", $secret);
My results haven’t generated anything close, such as:
$code = crypt($key, '$2a$07$'."$secret$");
Any suggestions?
Took me some time to figure it out. @daxim’s use of mcrypt put me down the path of trying the mcrypt libraries.