Reputation: 93
I have an example:
Md5 base64: wPE2JkrsTJxF+KbSDApwYQ==
Md5 using md5_file: c0f136264aec4c9c45f8a6d20c0a7061
how convert the firts md5 in the second md5?
Upvotes: 0
Views: 1099
Reputation: 6782
base64_decode
gets you from base64 back to binary, and then bin2hex
converts that to hex:
$var = "wPE2JkrsTJxF+KbSDApwYQ==";
echo bin2hex (base64_decode ($var));
// prints c0f136264aec4c9c45f8a6d20c0a7061
Upvotes: 2