03-03-2015, 01:28 AM
epixoip i c your point but not fully.
I *might* know how i can do it in php/mysql.
cheking 0-100000
for($i=0;$i<100000;$i++)
{
if(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $i, pack('H*', $hash), 'ecb') === $plain)
{
echo 'Encrypt key: '.$i; die();
}
}
however its slow since using cpu.
I *might* know how i can do it in php/mysql.
cheking 0-100000
for($i=0;$i<100000;$i++)
{
if(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $i, pack('H*', $hash), 'ecb') === $plain)
{
echo 'Encrypt key: '.$i; die();
}
}
however its slow since using cpu.