Skip to content

imtoopunkforyou/password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Password Generator

Cryptographic password generator for the command line.

~ > genpass 32
aaWXrQLSB0K1xmmV7JoQJ3Qz9HbwMEno

Installation

  1. Download the script:
curl -O https://raw.githubusercontent.com/imtoopunkforyou/password-generator/refs/heads/main/password-generator.sh
  1. Make executable:
chmod +x password-generator.sh

Usage

  • Basic generation (12 characters with default charset):
./password-generator.sh --length 12
  • Custom character set (ASCII letters and numbers):
./password-generator.sh --length 16 --charset "a-zA-Z0-9"

Alias Setup

Add to your shell configuration (.bashrc/.zshrc):

alias genpass="/path/to/password-generator.sh --length"

Usage with alias:

genpass 8  # Generates 8-character password
genpass 8 --charset "A-Za-z"  # Letters only

Command-line options

Option Description Required
-l, --length Password length (4-64) Yes
-c, --charset Custom tr-compatible pattern No
-h, --help Show usage information No

About

A simple script to generate a password in the terminal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages