BetaRide
BetaRide

Reputation: 16894

calculate checksum for a folder on windows and verify on linux

I have the following requirement:

  1. Calculate one checksum (SHA1 preferred) from an entire folder. This has to be done on Windows.
  2. Move this folder from a Windows to a Linux box.
  3. Verify the entire folder against the hash value on the Linux box.

Any ideas are welcome!

Upvotes: 3

Views: 11213

Answers (1)

tgharold
tgharold

Reputation: 731

md5deep http://linhost.info/2010/02/checksum-a-directory-with-md5deep/

It's done using MD5, but allows you to calculate hashes for sub-directories and is supposedly cross-platform. It would not surprise me if there was a SHA version out there.

Alternate solution would be to do the transfer with rsync over SSH (install Cygwin on the Windows box). Which will make sure that the destination matches the source.

Upvotes: 2

Related Questions