Skip to content

Instantly share code, notes, and snippets.

@ihower
Created February 27, 2009 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ihower/71387 to your computer and use it in GitHub Desktop.
Save ihower/71387 to your computer and use it in GitHub Desktop.
MD5 test
# ruby
require 'digest/md5'
puts Digest::MD5.hexdigest( File.read('foobar.png') )
# php5
echo md5( file_get_contents('foobar.png') );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment