This is mostly for my own future reference, but if you need to verify an MD5 checksum on a Mac, you need to do this:
- Open Terminal
- Type openssl md5 [filename]
Change 'md5' to 'sha1' if you want to verify the SHA-1 hash as well.
I downloaded Windows Vista RC1 last night and so I needed to verify the MD5 hash before burning it to DVD-R. Apparently it does work with Boot Camp now (the betas didn't) so I'll be sticking it on my MacBook this afternoon, just as soon as I've bought a DVD-R. I didn't opt for a SuperDrive on my MacBook so it can't burn DVDs, but I've been at my parents' this weekend and their computer does have a DVD-RW drive.
And though this will undoubtedly come as no surprise to most of you, but verifying an MD5 hash on a 2.52 GB file takes a long time.
example :
Frank-iMac:Downloads frank$ md5 WinXPSP3.iso
MD5(WinXPSP3.iso)= 6ffd3536ccc4b9eb9d2de07b72dd8c9c
原文取自 http://www.neilturner.me.uk/2006/09/10/verifying_md5_checksums_o.html