隨着PHP在equivelant,我試圖效仿的Perl的功能:Perl的encrypt_hex
#!/usr/bin/perl
use DBI;
use Crypt::ECB qw(encrypt decrypt encrypt_hex decrypt_hex);
$code = encrypt_hex($key, "Blowfish", $secret);
我的結果還沒有產生任何接近,如:
$code = crypt($key, '$2a$07$'."$secret$");
任何建議?
@daxim,實際上我不確定。這是自從開發人員離開之後我繼承的代碼。儘管如此,仍然有效。我更新了示例的perl部分以顯示包含。 – Jahmic