wiki:MD5
Last modified 2 years ago Last modified on 06/07/2012 04:23:12 PM

MD5

To check the md5 checksum of a file:

  • Linux:
md5sum <filename>
  • Mac OS X:
md5 <filename>
  • Windows :

    1. save this md5sum.py file:

      import sys
      import os
      import md5
      
      if len(sys.argv) == 1:
          print 'Usage: %s <filename>' % os.path.basename(sys.argv[0])
      else:
          print md5.md5(file(sys.argv[1]).read()).hexdigest()
      
    2. launch:

      python md5sum.py <filename>