I have compiled native (no Cygwin, no other dlls) Windows versions of md5sum.exe, sha1sum.exe, sha224sum.exe, sha256sum.exe, sha384sum.exe and sha512sum.exe. Download binaries
here, and source (as required by GPL)
here. If you want to compile them yourself (with MinGW and MSYS), just delete error-causing lines from configure and makefiles until you succeed.
Update 2008/05/26: I've compiled new binaries from
coreutils-6.11, download them
here.
F:\>gpgsha1\sha1sum Fedora-9-i386-DVD.iso
50253a35b5ba128c9a57b2a10cbd829813fc5119 Fedora-9-i386-DVD.iso
F:\>nflold\sha1sum Fedora-9-i386-DVD.iso
50253a35b5ba128c9a57b2a10cbd829813fc5119 *Fedora-9-i386-DVD.iso
F:\>nflnew\sha1sum Fedora-9-i386-DVD.iso
50253a35b5ba128c9a57b2a10cbd829813fc5119 *Fedora-9-i386-DVD.iso
F:\>"C:\Program Files\GnuWin32\bin\sha1sum" Fedora-9-i386-DVD.iso
50253a35b5ba128c9a57b2a10cbd829813fc5119 *Fedora-9-i386-DVD.iso
ofcourse running sha256sum.exe on these datafiles themselves yields correct hashes.
For test purposes I have two "naked" Windows Server 2003 R2 installations. One 32bit and one 64bit.
When I try to do a sha512 on the 32bit machine it works fine with all files eg: c:\windows\system32\wuauclt.exe
When the exact same command is passed on the 64bit machine sha512sum fails.
c:\tools\sha512sum.exe: c:\WINDOWS\system32\wuauclt.exe: No such file or directo
ry
The permissions seems identical.
I can execute the wuauclt file.
I can copy the wuauclt file.
7-zip have no problem reading the file and creating an archive with it in.
Any ideas what could be wrong?
It is due to folderredirection in 64bit systems. It is described here:
http://wredsys.wordpress.com/2011/02/28/how-to-suppress-system32-folder-redirection-to-syswow64-folder-sysnative/
Would be sweet with a 64bit version of these utils :-)