Clifford Heath
12/5/2006 10:10:00 PM
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.