Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.15 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.15 KB

genpass

Simple password generator

Usage

  -a    Include alphabet characters.
  -c string
        Custom character set.
  -l int
        Length of each password. (default 20)
  -n    Include numbers.
  -r int
        Number of results (will be ignored if "-u" is specified). (default 1)
  -s    Include special characters.
  -u string
        Users (comma-separated).

Samples

./genpass -a
# YragTrcoRiVeSpgPUPDZ

./genpass -s
# [*([&.^+"/]_./]+`,(_

./genpass -c "1AZ%" -l 28
# ZAZAA11A1A%Z%AA%AAAZ%1%1%%AA

./genpass -u admin,user1,user2,user3,demo,test -a -n
# admin   4zUUe8CHKHAMeO51eC84
# user1   MgqHIknbjEwDR6EVug7T
# user2   jrDEycHSRKCBS8ggYHHg
# user3   nCWVF0oBqYyh5XR2dDDg
# demo    d9p3Rpk6jXDwfWb6NgkZ
# test    9OqCP1qI6mPcGbK0DGF8

Download

Linux, Windows, Mac OS (Intel, M1+)