|→||1.5 File and directory tools|
File integrity checker
|Copyright and license|
dk-fic [options] [files]
The program can either build file checksum list or check (verify) checksum lists.
A checksum list contains message digests (MD5, SHA-1, RIPEMD-160
and SHA-512), file size and file name.
If support for the SHA-512 message digest algorithm was not found during build process (only a very old version of OpenSSL available), the SHA-512 message digest is skipped.
Message digests are converted to text using ASCII-85 encoding,
ASCII-85 encoded output is shorter than ASCII-Hex encoded output. Output from dk-fic checksum builder process is intended to be checked by a dk-fic checksum verifier process, not for reading by humans.
When building a file checksum list, the files specified as command line arguments contain lists of file names to produce checksums for. If no file is specified as argument, the list of file names is read from standard input.
When verifying checksum lists, the files specified as command line arguments contain checksum lists previously produced. If no file is specified as argument, the checksum list is read from standard input.
Four different message digest algorithms are used, additionally the file size is written to the checksum list. Constructing a file of same size as the original file producing a checksum collision for four different message digest algorithms should be significantly harder than constructing a file producing a checksum collision for just one algorithm.
0 on success, all other values indicate errors.
dk-ls -r -tf -pn directory | dk-fic > checksumlist.txt
find directory -type f | dk-fic > checksumlist.txt
dk-fic -c < checksumlist.txt
dk-fic -c -i ascii < checksumlist.txt
dk-fic -c -i utf-8 < checksumlist.txt
When creating a checksum list, the checksum list file is still under construction. Make sure not to include the intended output file into the list of files to build checksums for.
On Windows the file name length is restricted to _MAX_PATH (260) characters if the file name contains a wildcard (* or ? character).
This program uses DK libraries version 4.
The program combines functionality from the ``dkt checksum'' and ``dkt checksize'' programs found in DK tools 3.x.x.
See the Legal stuff page for copyright and license information.
This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/).
This product includes cryptographic software written by Eric Young (firstname.lastname@example.org).
This product includes software written by Tim Hudson (email@example.com).
|http://dktools.sourceforge.net||DK tools home page|