07-03-2013, 03:28 AM
Here is the php version of it, if someone cares...
Code:
<?php
$hash = '6dd505428c250231ed5e0bc06288138d18d6eb25';
$res = '';
if (strlen($hash) % 8 == 0)
{
$tab = str_split($hash, 8);
foreach ($tab AS $chunk)
$res .= join('', array_reverse(str_split($chunk, 2)));
}
echo $res;
?>