Docker-based tool for generating password hashes in bcrypt and sha512 formats.
GitHub: github.com/bidease/pwd
# Build for current platform
make build# Build for multiple platforms (AMD64 and ARM64)
make build-multiarchPre-built image is available on Docker Hub:
docker pull bidease/pwdYou will be prompted for the password twice (input is hidden).
Generate bcrypt hash
make bcryptOr
docker run --rm -it bidease/pwd bcryptGenerate sha512 hash
make sha512Or
docker run --rm -it bidease/pwd sha512Pass the password as a second argument. No TTY required, no confirmation prompt — useful for scripts and CI.
docker run --rm bidease/pwd bcrypt 'mypassword'
docker run --rm bidease/pwd sha512 'mypassword'Note: the password will be visible in your shell history and process list. Prefer the interactive mode for sensitive credentials.
Pipe the password to the container. No TTY required, no confirmation prompt, and the password does not appear in the process list.
echo -n 'mypassword' | docker run --rm -i bidease/pwd bcrypt
echo -n 'mypassword' | docker run --rm -i bidease/pwd sha512The
-iflag is required so Docker forwards stdin into the container. Useecho -n(orprintf '%s') to avoid a trailing newline in the password.
- Docker
- Make (for using Makefile commands)
This project is licensed under the MIT License - see the LICENSE file for details.