From: Philippe Chotard Date: 2009-03-05T21:22:30+09:00 Subject: Re: openssl and SHA* Brian Candler wrote: > But in any case, reading 512MB of data into RAM just to calculate SHA1 > is very wasteful. I suggest you recode it: > > puts Digest::SHA1.file("my_file").hexdigest Thanks for your response Brian. Indeed, using this method I got the right hash. So it looks like as you said, that the problem is appearing when sha is handling 512MB+ strings. I'll do some further testing on other systems and versions (Using ruby 1.9.0 on a debian lenny) Thanks ! -- Posted via http://www.ruby-forum.com/.