From: Philippe Chotard Date: 2009-03-05T04:06:06+09:00 Subject: openssl and SHA* Hi, I'm quite new to ruby, and I'm facing a problem I can't seem to be able to solve by myself.. I'm comparing openssl sha1 hash results from a linux command line, to ruby ones : --- cmd line : openssl dgst -sha1 my_file ruby : require 'digest/sha1' puts Digest::SHA1.hexdigest(File.read("my_file")) --- I increase the file and run it again, and again. The hashes are similars until the file size reaches 512Mo, from then they differs. I tried several sha versions (sha256..sha512) and the problem is the same. However with MD5, I have no problem. Anyone has an idea if I'm doing something wrong here ? Thanks a lot ! ChoBolT -- Posted via http://www.ruby-forum.com/.