https://github.com/pedr0rocha/passgen
A simple password generator CLI tool
https://github.com/pedr0rocha/passgen
cli go golang password-generator
Last synced: 6 months ago
JSON representation
A simple password generator CLI tool
- Host: GitHub
- URL: https://github.com/pedr0rocha/passgen
- Owner: Pedr0Rocha
- License: mit
- Created: 2021-10-15T01:12:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-07T18:24:55.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T13:38:10.435Z (over 1 year ago)
- Topics: cli, go, golang, password-generator
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Passgen - Password Generator CLI
Generates a password up to 1024 characters. It guarantees at least one uppercase letter,
lowercase letter, a digit and a symbol (if enabled).
## Install
```bash
go install github.com/pedr0rocha/passgen@latest
```
## Usage
```bash
passgen --help
-length [-l] (default 16)
-symbols [-s] (default true)
-verbose [-v] (default false)
-base64 [-b] (default false)
```
```bash
passgen -length=64
# XzsOX_]Y3+O_a]}bJia:Qji6nWhwH==[DP:7nEw*eF#c:Joq1_Hx-bVlToM7JY
passgen -l=24 -symbols=false
# B5m9MVbWNaULj37UJgBqt0vU
passgen
# W8VrEF2h#!QWFdrP
passgen -v
# Configuration:
# - Length: 16
# - Symbols: true
# - Attempts: 1
#
# Ok0E3L?7]TSe=-Ws
passgen -b -v
# Configuration:
# - Length: 16
# - Symbols: true
# - Encoded: true
# - Attempts: 1
#
# K8ld3S.ngJc+E4[n
#
# SzhsZDNTLm5nSmMrRTRbbg==
passgen -base64
# GYPp5F?Zh=+7?rvT
#
# R1lQcDVGP1poPSs3P3J2VA==
```
## Tests
```bash
make test
```
## Disclaimer
This password generator does **NOT** implement high entropy strategies and should not be used
to extreme security requirement applications.