Skip to content

Instantly share code, notes, and snippets.

@jish
Created February 27, 2013 16:23
Show Gist options
  • Select an option

  • Save jish/5049205 to your computer and use it in GitHub Desktop.

Select an option

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?
~/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
@RedstoneEditor
Copy link

Not sure :3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment