need help unpacking hmac-md5 hash into md5 hash
Hey Im wondering if theres any code out there to unpack a hmac-md5 hash (with the key) back to the original md5.. I would assume this fairly easy to do and there should be code out there.. I cant find it however.. much appericated. thanks, (and I dont code myself or I would make it) well I do in perl but not php.
heres all the packing that is done anyways not much code here as you can see.. I would just like to UNPACK it.. maybe someone could write a few lines of code for me?
$hash = md5_hmac(yycc, yyaa);
// MD5 Encryption
function md5_hmac($data, $key)
if (strlen($key) > 64)
$key = pack('H*', md5($key));
$key = str_pad($key, 64, chr(0x00));
$k_ipad = $key ^ str_repeat(chr(0x36), 64);
$k_opad = $key ^ str_repeat(chr(0x5c), 64);
return md5($k_opad . pack('H*', md5($k_ipad . $data)));
I was just starting to work through it and realised it finished like this:
The last operation on the statement is itself a md5 one way hash sum, before that is a salt concatenated with a pack of padding and a hash sum of the data and a salt.
If you think you can do it without a lookup or by using brute force then good luck (and when I say good luck, I mean have a 'Good Look!')...
|All times are GMT -5. The time now is 01:52 PM.|