From: Clifford Heath Date: 2006-12-06T07:10:16+09:00 Subject: Re: md5 function in Ruby Denys Yakhnenko wrote: > md5=Digest::MD5.hexdigest(File.read("C:\\dc.log")) > produces completely different hash than any of the other tools I use Open the file in binary mode: ruby -e 'require "digest/md5"; p Digest::MD5.hexdigest(File.read("C:\\dc.log", "rb"))' Clifford Heath.