Skip to content

Command line tool for generating random passwords.

License

Notifications You must be signed in to change notification settings

lindsuen/mkpasswd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkpasswd

build GitHub License

Command line tool for generating random passwords. It's just a small tool in daily work. 😄

Features

  • Support command line parameters.
  • Support generating multiple passwords.
  • Support Arabic numerals 0-9.
  • Support special characters !@#$%^&*+?.

Usage

The command includes four optional parameters. You can type mkpasswd -h for help.

For example:

mkpasswd -N 5 -l 16 -n 4 -c 4
  • -N: The quantity of created passwords.
  • -l: The length of password.
  • -n: The number of Arabic numerals in password.
  • -c: The number of special characters in password.

Build

Build separately in your operating system.

# Windows
go build -o mkpasswd.exe -ldflags "-s -w" .
# Linux or MacOS or FreeBSD
go build -o mkpasswd -ldflags "-s -w" .

Build for all mainstream platforms. Please see the Makefile for details.

make all

License

GPL-3.0 license