Skip to content

bidease/pwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Hash Generator

Docker-based tool for generating password hashes in bcrypt and sha512 formats.

Repository

GitHub: github.com/bidease/pwd

Build

Local Build

# Build for current platform
make build
# Build for multiple platforms (AMD64 and ARM64)
make build-multiarch

Docker Hub

Pre-built image is available on Docker Hub:

docker pull bidease/pwd

Usage

Interactive mode

You will be prompted for the password twice (input is hidden).

Generate bcrypt hash

make bcrypt

Or

docker run --rm -it bidease/pwd bcrypt

Generate sha512 hash

make sha512

Or

docker run --rm -it bidease/pwd sha512

Non-interactive mode

Pass 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.

Stdin mode

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 sha512

The -i flag is required so Docker forwards stdin into the container. Use echo -n (or printf '%s') to avoid a trailing newline in the password.

Requirements

  • Docker
  • Make (for using Makefile commands)

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors