Why is my command-line hash different from online MD5 hash results?
Fresh3 days ago
Mar 15, 202611419 viewsConfidence Score0%
0%
Problem
On a Mac OS X v10.5 (Leopard) PowerPC, if I do: on the command line, the result is: But if I enter hello into one of the online MD5 hash sites like http://md5online.net/, I get: Am I doing something wrong? If I want to use MD5 on the go, how can I make sure what I'm getting on the command line will…
Error Output
b1946ac92492d2347c6235b4d2611184
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Why is my command-line hash different from online MD5 hash results?
Low Risk
When you echo from the command line, md5 is calculating the sum of 6 characters - h,e,l,l,o plus newline. The text you enter in a website doesn't have a newline. Try doing and it'll give you what you expect. The -n tells echo not to output a newline.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix