simple file hasher using node.js crypto
$ node hasher.js <file_name> <hash_type>
$ node hasher.js my_file sha256
if <hash_type> not passed => <hash_type> = md5
- Pull IMG, Run hasher and remove container
docker run --rm -v ~/Downloads/20150922120001.mp4:/file 2b1q/hasher /file 'sha256'
- git clone
$ git clone https://github.com/2b1q/hasher.git
- install docker
- build docker container
$ docker build -t hasher .
- run hasher container. pass file & args
$ docker run -v ~/Downloads/myFile.png:/1 --rm hasher /1 sha256