Created
February 27, 2013 16:23
-
-
Save jish/5049205 to your computer and use it in GitHub Desktop.
Does the filename matter when taking an md5 or shasum of a file?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/tmp% echo "Hello World" > file1.txt | |
| ~/tmp% echo "Hello World" > file2.txt | |
| ~/tmp% shasum file1.txt | |
| 648a6a6ffffdaa0badb23b8baf90b6168dd16b3a file1.txt | |
| ~/tmp% shasum file2.txt | |
| 648a6a6ffffdaa0badb23b8baf90b6168dd16b3a file2.txt | |
| ~/tmp% md5 file1.txt | |
| MD5 (file1.txt) = e59ff97941044f85df5297e1c302d260 | |
| ~/tmp% md5 file2.txt | |
| MD5 (file2.txt) = e59ff97941044f85df5297e1c302d260 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure :3