| Crates.io | passgenz |
| lib.rs | passgenz |
| version | 0.1.1 |
| created_at | 2025-06-23 06:34:21.849896+00 |
| updated_at | 2025-06-23 06:45:56.16739+00 |
| description | A secure password generator CLI tool for macOS with clipboard integration |
| homepage | https://github.com/morshedulmunna/passgen |
| repository | https://github.com/morshedulmunna/passgen |
| max_upload_size | |
| id | 1722418 |
| size | 153,558 |
A secure and feature-rich password generator CLI tool built in Rust, specifically designed for macOS.
The easiest way to install on any platform:
curl -fsSL https://raw.githubusercontent.com/morshedulmunna/passgen/main/install-universal.sh | bash
# Add the tap (if using custom tap)
brew tap morshedulmunna/tap
# Install the tool
brew install passgen
cargo install passgen-cli
Clone or download this repository
Navigate to the project directory:
cd passgen
Build the project:
cargo build --release
Install globally:
cargo install --path .
Download the latest release for your platform from GitHub Releases
Extract the archive
Move the binary to a directory in your PATH:
# For macOS/Linux
sudo mv passgen /usr/local/bin/
# Or for user installation
mkdir -p ~/.local/bin
mv passgen ~/.local/bin/
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
After installation, try these commands:
# Generate a secure password
passgen generate --length 16 --copy
# Generate a memorable passphrase
passgen passphrase --words 4
# Check password strength
passgen check "MyPassword123!"
# Generate a hash
passgen hash "my-secret-string" --algorithm sha256
Generate a basic 16-character password:
passgen generate
Generate a 32-character password with specific character sets:
passgen generate --length 32 --uppercase --lowercase --numbers --special
Generate a password and copy to clipboard:
passgen generate --length 20 --copy
Generate a password in Base64 format:
passgen generate --length 16 --format base64
Exclude similar and ambiguous characters:
passgen generate --exclude-similar --exclude-ambiguous
Generate a 4-word passphrase:
passgen passphrase
Generate a 6-word passphrase with numbers and special characters:
passgen passphrase --words 6 --numbers --special
Generate a passphrase with custom separator:
passgen passphrase --separator "-" --copy
Analyze a password:
passgen check "MyPassword123!"
Generate SHA256 hash:
passgen hash "my-secret-string"
Generate SHA512 hash:
passgen hash "my-secret-string" --algorithm sha512
Generate Base64 encoding:
passgen hash "my-secret-string" --algorithm base64
-l, --length <LENGTH>: Password length (default: 16)-u, --uppercase: Include uppercase letters-d, --lowercase: Include lowercase letters-n, --numbers: Include numbers-s, --special: Include special characters--exclude-similar: Exclude similar characters (l, 1, I, O, 0)--exclude-ambiguous: Exclude ambiguous characters-f, --format <FORMAT>: Output format (plain, base64, hex)-c, --copy: Copy to clipboard-w, --words <WORDS>: Number of words (default: 4)--separator <SEPARATOR>: Word separator (default: space)-n, --numbers: Include numbers-s, --special: Include special characters-c, --copy: Copy to clipboardpassword: Password to analyzeinput: Input string to hash-a, --algorithm <ALGORITHM>: Hash algorithm (sha256, sha512, base64)passgen generate --length 24 --uppercase --lowercase --numbers --special --exclude-similar --copy
passgen passphrase --words 5 --numbers --special --copy
passgen check "password123"
passgen hash "my-api-key" --algorithm sha256
OsRng for true randomnessIf clipboard functionality doesn't work:
If you encounter installation problems:
curl -fsSL https://raw.githubusercontent.com/morshedulmunna/passgen/main/install-universal.sh | bashThis project is licensed under the MIT License - see the LICENSE file for details.
This tool is provided for educational and personal use. Always follow your organization's password policies and security guidelines. The authors are not responsible for any security issues arising from the use of this tool.