I have a list of passwords in mySQL that are generated using
$hash = \'{SHA}\' . base64_encode(sha1(\'some string here\', true));
I need t
$binary = base64_decode(substr($hash, 5)); $hex = bin2hex($binary);
Well base64_decode() can be found in the base64_encode manual entry. And I am sure they have a way to convert raw format in the sha1 manual entry comments, if it's too hard for you to write it yourself
base64_decode()