From: matz@... (Yukihiro Matsumoto) Date: 2002-12-22T18:56:22+09:00 Subject: Re: Quickest way to get md5 of a file? Hik In message "Quickest way to get md5 of a file?" on 02/12/22, coma_killen@fastmail.fm writes: |I wanna get the md5 checksums of files from within Ruby code. |I realize I can simply loop, read chunks of the file and |update an MD5 object but that would be very much slower than |using an external MD5 checksum program and I have very many |files to check. | |Is there some trick to speed this up or should we consider adding |a checksum_of_file method to Digest? ruby -r digest/md5 -e 'ARGV.each{|f|print f, " "; puts Digest::MD5.hexdigest(File.read(f))}' * matz.