The haskdeep package

[Tags: bsd3, program]

A command line application that computes file hashes traversing recursively through a directory structure.

The known hashes can be used to audit the same directory structure or a copy of it.

Execute haskdeep without arguments and it will show you the help text:

 user@host:~$ haskdeep

  Usage: haskdeep COMMAND [-c|--computation MODE] [-r|--root DIRNAME] [-k|--known FILENAME]
    Computes hashes and audit a set of files

  Available options:
    -h,--help                Show this help text
    -v,--version             Show version information
    -c,--computation MODE    md5 | sha1 | sha256 | skein512 - default md5
    -r,--root DIRNAME        Root directory - default current directory
    -k,--known FILENAME      Known hashes file - default known.haskdeep
    -e,--excl-regex REGEX    Exclude files or directories based on regex
    -f,--incl-mod-from DATE  Include files modified from yyyy-mm-ddThh:mm:ssZ
    -t,--incl-mod-upto DATE  Include files modified up to yyyy-mm-ddThh:mm:ssZ

  Available commands:
    compute                  Computes file hashes and saves them to known hashes file
    audit                    Audits files comparing them to known hashes

Default usage:

1. create known hashes of files contained in a root directory (traversed recursively)

  user@host:~$ haskdeep compute -c md5 -r myimportantfiles/ -k knownhashes.txt -e "tmp|\.log"

2. verify a copy of the same files comparing them with known hashes

  user@host:~$ haskdeep audit -c md5 -r copyofmyimportantfiles/ -k knownhashes.txt -e "tmp|\.log"

Heavily inspired by hashdeep:


Dependenciesattoparsec (==0.10.*), attoparsec-conduit (==1.0.*), base (==4.*), base16-bytestring (==0.1.*), bytestring (==0.9.*), cereal (==0.3.*), conduit (==1.0.*), containers (==0.4.*), crypto-api (==0.12.*), crypto-conduit (==0.5.*), cryptohash (==0.10.*), cryptohash-cryptoapi (==0.1.*), filesystem-conduit (==1.0.*), old-locale (==1.0.*), optparse-applicative (==0.5.*), regex-tdfa (==1.1.*), regex-tdfa-text (==1.0.*), system-fileio (==0.3.*), system-filepath (==0.4.*), text (==0.11.*), time (==1.4.*)
Copyright© 2013 Mauro Taraborelli
AuthorMauro Taraborelli
CategoryConsole, Cryptography, System
Home page
Bug tracker
Source repositoryhead: git clone
head: git clone
Upload dateSun Sep 15 09:21:53 UTC 2013
Uploaded byMauroTaraborelli
Downloads107 total (10 in last 30 days)


Maintainers' corner

For package maintainers and hackage trustees