Updated to use PHP's bin2hex() function when outputting results