From: Clifford Heath Date: 2007-03-30T13:20:04+09:00 Subject: Re: md5 function in Ruby Bontina Chen wrote: > Clifford Heath wrote: >> ruby -e 'require "digest/md5"; p >> Digest::MD5.hexdigest(File.read("C:\\dc.log", "rb"))' > I'm transforming a string. > How could I change a string to binary mode? You don't need to, it's always a simple binary sequence. Whether it got constructed correctly in the first place is another thing though. What's with this thread being revived after nearly 4 months? Clifford Heath.