Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make an MD5 file on a Mac

I'm sending a source code package to someone via email. I have sent them an .svdump which contains the files. They have now asked me to send an MD5 file for the source dump. How do I create this on a Mac?

like image 699
Alex Avatar asked Mar 24 '11 17:03

Alex


People also ask

How do you create a checksum on a Mac?

A checksum is a calculation of all the data on a disk or disk image. You can use checksums to make sure that a disk image, CD, or DVD was copied correctly. In the Disk Utility app on your Mac, choose Images > Add Checksum, then select the disk image to add the checksum to. Click Open, then click Done.


2 Answers

Open up a terminal and invoke the md5 program with the filename that you want to create a hash for:

md5 some_app > md5.txt

The command above stores the resulting hash in a file named md5.txt.

like image 186
karlphillip Avatar answered Oct 29 '22 13:10

karlphillip


In your terminal, just use the command "md5" and the file name. It's in /sbin/md5 i think.

> md5 -r myfile.txt
like image 22
sstendal Avatar answered Oct 29 '22 13:10

sstendal