Awesome Open Source
Awesome Open Source

Hash

Docker container with utilities to compute hashes (CRC32, MD5, SHA-1, SHA-256, SHA-512, Argon2...).

Docker Build Docker Stars Docker Pulls Docker Automated Docker Build Docker Version

Example not using the filesystem

Let's say that you have a file foo.txt in your current working directory that you want to compute its SHA-256 hash:

Mac/Linux

cat foo.txt | docker run --rm -i --net=none thomasleplus/hash sha256sum

Windows

type foo.txt | docker run --rm -i --net=none thomasleplus/hash sha256sum

Example using the filesystem

Same thing, assuming that you have a file foo.txt in your current working directory that you want to compute its SHA-256 hash:

Mac/Linux

docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" thomasleplus/hash sha256sum /tmp/foo.txt

Windows

In cmd:

docker run --rm -t --net=none -v "%cd%:/tmp" thomasleplus/hash sha256sum /tmp/foo.txt

In PowerShell:

docker run --rm -t --net=none -v "${PWD}:/tmp" thomasleplus/hash sha256sum /tmp/foo.txt

Help

To know what are the message digest algorithms supported by openssl, you can run:

docker run --rm --net=none thomasleplus/hash openssl help

Request new tool

Please use this link (GitHub account required) to request that a new tool be added to the image. I am always interested in adding new capabilities to these images.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Docker (33,726
Dockerfile (27,808
Cryptography (3,489
Docker Container (1,318
Md5 (387
Sha256 (375
Sha1 (252
Checksum (243
Hmac (185
Related Projects