in reply to Re^4: Digest::SHA gives different values for unix/windows
in thread Digest::SHA gives different values for unix/windows
It's easier to just call Digest::SHA::addfile($filename "b")open the file set binmode while (not EOF) { read N-bytes of the file into a buffer # don't want to read the +whole file into memory if it's a big file Digest::SHA::add($buffer) } close file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Digest::SHA gives different values for unix/windows
by Jim (Curate) on Jun 13, 2013 at 19:22 UTC | |
by zork42 (Monk) on Jun 14, 2013 at 07:07 UTC |