Skip to content

bilalbaraz/passgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” passgen โ€” Generate passwords from the terminal

A small Go CLI that generates secure random passwords with flexible character sets and exclusions.

Uses crypto/rand for cryptographically secure randomness. If no charset flags are provided, all sets are enabled by default.

Installation (Homebrew)

brew tap bilalbaraz/tap
brew install passgen

Quickstart

# basic (defaults to all character sets)
passgen -len 16 -count 3

# lower/upper/digits only
passgen -len 24 -count 5 -lower -upper -digits

# symbols only, excluding "@$"
passgen -len 20 -symbols -exclude "@$"

# exclude ambiguous characters (0 O 1 l I)
passgen -len 16 -no-ambiguous

Command Surface

  • Length: -len <n>
  • Char sets: -lower, -upper, -digits, -symbols
  • Count: -count <n>
  • Exclude chars: -exclude "..."
  • No ambiguous: -no-ambiguous
  • Help: -h / -help

Configuration

No config file. All behavior is controlled via CLI flags.

Notes

  • Errors are printed to stderr and exit with code 1 on invalid input.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages