Skip to content

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

License

Notifications You must be signed in to change notification settings

leplusorg/docker-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hash

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

Dockerfile Docker Build Docker Stars Docker Pulls 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 leplusorg/hash sha256sum

Windows

type foo.txt | docker run --rm -i --net=none leplusorg/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" 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

Help

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

docker run --rm --net=none leplusorg/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.