ok well... im not going to translate it for you... but if you are familiar with perl at all... you should be able to find equivelant function calls and structure with php...
so you just need to step through line by line... and copy function for function... and then just translate each perl call to php...
should be doable just time consuming...but by the time your done, you should understand the shit out of hmac-ing
🙂
do you think that is doable or just too much hassle