Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.27 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.27 KB

mkpasswd

build GitHub License

A 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. To start building mkpasswd, install Go 1.20 or above.

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

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

$ make all

License

GPL-3.0 license