Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Test Blowfish crypt() does not fall back to DES when rounds are not specified, or..
Decoded Output download
--TEST--
Test Blowfish crypt() does not fall back to DES when rounds are not specified,
or Blowfish is not available.
--FILE--
<?php
$crypt = crypt('U*U', '$2a$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW');
if ($crypt==='*0') {
echo "OK
";
} else {
echo "Not OK
";
}
?>
--EXPECT--
OK
Did this file decode correctly?
Original Code
--TEST--
Test Blowfish crypt() does not fall back to DES when rounds are not specified,
or Blowfish is not available.
--FILE--
<?php
$crypt = crypt('U*U', '$2a$CCCCCCCCCCCCCCCCCCCCC.E5YPO9kmyuRGyh0XouQYb4YMJKvyOeW');
if ($crypt==='*0') {
echo "OK\n";
} else {
echo "Not OK\n";
}
?>
--EXPECT--
OK
Function Calls
crypt | 1 |
Stats
MD5 | 7e9782a7952a6ae016eb5eb9f7dda830 |
Eval Count | 0 |
Decode Time | 170 ms |