何時もはCygwin のGnu coreutils のtool を使うが,Microsoft 製の物を見つけたので試してみる.
#Windows8 にも導入できた.
usage
>fciv
//
// File Checksum Integrity Verifier version 2.05.
//
Usage: fciv.exe [Commands] <Options>
Commands: ( Default -add )
-add <file | dir> : Compute hash and send to output (default screen).
dir options:
-r : recursive.
-type : ex: -type *.exe.
-exc file: list of directories that should not be computed.
-wp : Without full path name. ( Default store full path)
-bp : specify base path to remove from full path name
-list : List entries in the database.
-v : Verify hashes.
: Option: -bp basepath.
-? -h -help : Extended Help.
Options:
-md5 | -sha1 | -both : Specify hashtype, default md5.
-xml db : Specify database format and name.
To display the MD5 hash of a file, type fciv.exe filename
sha1/md5 に対応.規定値はmd5.
>fciv -sha1 Contacts\desktop.ini
//
// File Checksum Integrity Verifier version 2.05.
//
a316a38e1a8325bef6f68f18bc967b9aaa8b6ebd contacts\desktop.ini
>fciv -md5 Contacts\desktop.ini
//
// File Checksum Integrity Verifier version 2.05.
//
449f2e76e519890a212814d96ce67d64 contacts\desktop.ini
>fciv -both Contacts\desktop.ini
//
// File Checksum Integrity Verifier version 2.05.
//
MD5 SHA-1
-------------------------------------------------------------------------
449f2e76e519890a212814d96ce67d64 a316a38e1a8325bef6f68f18bc967b9aaa8b6ebd contac
ts\desktop.ini
何もないよりはいいけど,md5/sha1 しか対応してないのは悲しいですね.