in reply to Digest::SHA gives different values for unix/windows
#supposed to be portable and os independant? not working.
I suspect it is working just fine.
The default FTP translation mode is ASCII, which does line ending localization (LF to CRLF, CRLF to LF, etc.). You don't want this for binary files such as compressed archives. You want binary mode instead. See File_Transfer_Protocol: Communication and data transfer for more details.
It's a good thing you're computing message digests on both of sides of the FTP file transfer. Your strategy worked!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Digest::SHA gives different values for unix/windows
by rmahin (Scribe) on Jun 12, 2013 at 06:02 UTC | |
by Jim (Curate) on Jun 12, 2013 at 17:30 UTC | |
by rmahin (Scribe) on Jun 12, 2013 at 18:34 UTC | |
|
Re^2: Digest::SHA gives different values for unix/windows
by rmahin (Scribe) on Jun 12, 2013 at 17:06 UTC | |
by Jim (Curate) on Jun 12, 2013 at 17:37 UTC |