Skip to content

Instantly share code, notes, and snippets.

@ran488
Created November 9, 2011 16:50
Show Gist options
  • Save ran488/1352049 to your computer and use it in GitHub Desktop.
Save ran488/1352049 to your computer and use it in GitHub Desktop.
md5 checksum in Ruby
#!/usr/bin/ruby -w
require 'digest/md5'
ARGV.each do |f|
digest = Digest::MD5.file(f)
puts "#{f}: #{digest}"
end
__END__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment