Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leplusorg/docker-hash
Docker container with utilities to compute hashes (CRC32, MD5, SHA-1, SHA-256, SHA-512, Argon2...).
https://github.com/leplusorg/docker-hash
argon2 checksum crc32 cryptography docker docker-container docker-image dockerfile hash hmac md5 message-digest sha-1 sha-256 sha-512 sha1 sha256
Last synced: about 20 hours ago
JSON representation
Docker container with utilities to compute hashes (CRC32, MD5, SHA-1, SHA-256, SHA-512, Argon2...).
- Host: GitHub
- URL: https://github.com/leplusorg/docker-hash
- Owner: leplusorg
- License: apache-2.0
- Created: 2019-12-04T00:02:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T12:33:09.000Z (8 months ago)
- Last Synced: 2024-05-01T22:13:53.629Z (8 months ago)
- Topics: argon2, checksum, crc32, cryptography, docker, docker-container, docker-image, dockerfile, hash, hmac, md5, message-digest, sha-1, sha-256, sha-512, sha1, sha256
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/leplusorg/hash
- Size: 161 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Hash
Docker container with utilities to compute hashes (CRC32, MD5, SHA-1, SHA-256, SHA-512, Argon2...).
[![Dockerfile](https://img.shields.io/badge/GitHub-Dockerfile-blue)](https://github.com/leplusorg/docker-hash/blob/main/hash/Dockerfile)
[![Docker Build](https://github.com/leplusorg/docker-hash/workflows/Docker/badge.svg)](https://github.com/leplusorg/docker-hash/actions?query=workflow:"Docker")
[![Docker Stars](https://img.shields.io/docker/stars/leplusorg/hash)](https://hub.docker.com/r/leplusorg/hash)
[![Docker Pulls](https://img.shields.io/docker/pulls/leplusorg/hash)](https://hub.docker.com/r/leplusorg/hash)
[![Docker Version](https://img.shields.io/docker/v/leplusorg/hash?sort=semver)](https://hub.docker.com/r/leplusorg/hash)## 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**
```bash
cat foo.txt | docker run --rm -i --net=none leplusorg/hash sha256sum
```**Windows**
```batch
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**
```bash
docker run --rm -t --user="$(id -u):$(id -g)" --net=none -v "$(pwd):/tmp" leplusorg/hash sha256sum /tmp/foo.txt
```**Windows**
In `cmd`:
```batch
docker run --rm -t --net=none -v "%cd%:/tmp" leplusorg/hash sha256sum /tmp/foo.txt
```In PowerShell:
```pwsh
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:
```bash
docker run --rm --net=none leplusorg/hash openssl help
```## Request new tool
Please use [this link](https://github.com/leplusorg/docker-hash/issues/new?assignees=thomasleplus&labels=enhancement&template=feature_request.md&title=%5BFEAT%5D) (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.