Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/0xetherpunk/passgen
๐ A secure command-line password generator with QR code generation and clipboard integration, powered by /dev/urandom
https://github.com/0xetherpunk/passgen
cli cli-app cli-password-generator clipboard go gocli golang pass password password-generator qr qr-code qr-generator qrcode qrcode-generator
Last synced: 2 months ago
JSON representation
๐ A secure command-line password generator with QR code generation and clipboard integration, powered by /dev/urandom
- Host: GitHub
- URL: https://github.com/0xetherpunk/passgen
- Owner: 0xEtherPunk
- License: mit
- Created: 2024-11-20T06:16:26.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-20T19:45:41.000Z (2 months ago)
- Last Synced: 2024-11-20T20:29:08.608Z (2 months ago)
- Topics: cli, cli-app, cli-password-generator, clipboard, go, gocli, golang, pass, password, password-generator, qr, qr-code, qr-generator, qrcode, qrcode-generator
- Language: Go
- Homepage:
- Size: 1.67 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ PassGen
### Secure Password & BIP39 Mnemonic Generator
[![Go Version](https://img.shields.io/badge/Go-1.23.2-00ADD8?style=flat-square&logo=go)](https://golang.org)
[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)![Demo](demo.gif)
## ๐ฏ Overview
PassGen combines secure password generation with BIP39 mnemonic phrase support, offering:
- ๐ก๏ธ Cryptographically secure generation using /dev/urandom
- ๐ Multi-language BIP39 support
- ๐ Instant clipboard integration
- ๐ฑ Terminal QR code display## โก Quick Start
### Installation Options
1. Latest release (recommended):
```bash
go install github.com/0xEtherPunk/passGen/cmd/passgen@latest
```2. Specific version:
```bash
go install github.com/0xEtherPunk/passGen/cmd/[email protected]
```3. From source:
```bash
# Clone repository
git clone https://github.com/0xEtherPunk/passGen.git
cd passGen# Install locally
go install ./cmd/passgen
```4. Manual build:
```bash
git clone https://github.com/0xEtherPunk/passGen.git
cd passGen
go build -o passgen cmd/passgen/main.go
sudo mv passgen /usr/local/bin/ # Optional: make globally available
```## ๐ ๏ธ Usage
### ๐ Password Generation
```bash
# Standard password (24-28 characters)
passgen# Custom length password
passgen -l 32
```### ๐ฒ BIP39 Mnemonic Generation
#### Default Usage
```bash
passgen -b # 24 words in English
passgen -b -12 # 12 words in English
```#### ๐ Supported Languages
```bash
# Full phrases (24 words)
passgen -b -en # ๐ฌ๐ง English (default)
passgen -b -ru # ๐ท๐บ Russian (ะ ัััะบะธะน)
passgen -b -jp # ๐ฏ๐ต Japanese (ๆฅๆฌ่ช)
passgen -b -cn # ๐จ๐ณ Chinese (็ฎไฝไธญๆ)
passgen -b -fr # ๐ซ๐ท French (Franรงais)
passgen -b -it # ๐ฎ๐น Italian (Italiano)
passgen -b -ko # ๐ฐ๐ท Korean (ํ๊ตญ์ด)
passgen -b -es # ๐ช๐ธ Spanish (Espaรฑol)# Short phrases (12 words)
passgen -b -12 -en # ๐ฌ๐ง English
passgen -b -12 -ru # ๐ท๐บ ะ ัััะบะธะน
passgen -b -12 -jp # ๐ฏ๐ต ๆฅๆฌ่ช
passgen -b -12 -cn # ๐จ๐ณ ็ฎไฝไธญๆ
passgen -b -12 -fr # ๐ซ๐ท Franรงais
passgen -b -12 -it # ๐ฎ๐น Italiano
passgen -b -12 -ko # ๐ฐ๐ท ํ๊ตญ์ด
passgen -b -12 -es # ๐ช๐ธ Espaรฑol
```### ๐ค Output Features
Every generated password or mnemonic is automatically:
- ๐ Displayed in terminal
- ๐ Copied to clipboard
- ๐ฑ Converted to QR code## ๐๏ธ Project Structure
```
passGen/
โโโ cmd/
โ โโโ passgen/
โ โโโ main.go # ๐ฏ Entry point
โโโ internal/
โ โโโ bip39/ # ๐ฒ BIP39 implementation
โ โ โโโ wordlist/ # ๐ Language wordlists
โ โ โ โโโ en.txt # English
โ โ โ โโโ ru.txt # Russian
โ โ โ โโโ jp.txt # Japanese
โ โ โ โโโ cn.txt # Chinese
โ โ โ โโโ fr.txt # French
โ โ โ โโโ it.txt # Italian
โ โ โ โโโ ko.txt # Korean
โ โ โ โโโ es.txt # Spanish
โ โ โโโ bip39.go # Core BIP39 logic
โ โ โโโ wordlist.go # Wordlist handling
โ โโโ clipboard/ # ๐ Clipboard operations
โ โโโ generator/ # ๐ฏ Password generation
โ โโโ qr/ # ๐ฑ QR code generation
โโโ README.md
```## โ๏ธ Requirements
- ๐ง Go 1.23.2 or higher
- ๐ง Unix-like system (for /dev/urandom)## ๐ License
MIT ยฉ [0xEtherPunk](https://github.com/0xEtherPunk)---
### ๐ If you find PassGen useful, please star it on GitHub!
---
> ๐ **Pro tip**: Pipe the output through `lolcat` for some extra color magic:
> ```bash
> passgen | lolcat
> passgen -b -12 -cn | lolcat
> ```