Easily hash files from the command line
A simple command line tool to hash files.
$ npm install -g hash-cli
Usage: hash-cli [options]
Options:
-h, --help output usage information
-V, --version output the version number
-a, --algorithm [algo] Algorithm to hash with. Defaults to sha1
-d, --directory [dir] Directory to hash
-f, --files [file[,file[,file[...]]]] Files to hash
--createOutputFiles Create hash files: 'FILENAME.EXT.ALG'
--list List available algorithms
--debug Debug on errors
$ hash-cli --algorithm sha1 --directory dir/to/hash --files file1,file2,file3
sha1
hashes for file1
, file2
, and file3
in dir/to/hash
sha1
and accepts anything that require("crypto").createHash()
acceptsprocess.cwd()
$ hash-cli -a md5
.md5
file for each file in the directory$ hash-cli -a sha256 -f file1.txt --createOutputFiles
file1.txt
, this will create file1.txt.sha256
$ hash-cli --list
require("crypto").getHashes()
$ hash-cli [options] --debug