From: Bontina Chen Date: 2007-03-30T14:06:08+09:00 Subject: Re: How to md5 a string? Chris Shea wrote: > On Mar 29, 9:13 pm, Bontina Chen wrote: >> >> -- >> Posted viahttp://www.ruby-forum.com/. > > It might be informative to see some examples what you're getting with > Digest/MD5 vs other tools. I've used Digest/MD5 with great success on > Windows. > > If what you're doing is getting the MD5 of a file, opening it for > reading in binary mode is done like so: > > File.new('filename','rb') > > Chris s="http://pandora.com" Digest::MD5.hexdigest(s) Abon -- Posted via http://www.ruby-forum.com/.