Docker container with utilities to compute hashes (CRC32, MD5, SHA-1, SHA-256, SHA-512, Argon2...).
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 leplusorg/hash sha256sum
Windows
type foo.txt | docker run --rm -i --net=none leplusorg/hash sha256sum
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" leplusorg/hash sha256sum /tmp/foo.txt
Windows
In cmd
:
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/hash sha256sum /tmp/foo.txt
In PowerShell:
docker run --rm -t --net=none -v "${PWD}:/tmp" leplusorg/hash sha256sum /tmp/foo.txt
To know what are the message digest algorithms supported by openssl
, you can run:
docker run --rm --net=none leplusorg/hash openssl help
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.