cli password generator by Golang
Go Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd/pw
.gitignore
LICENSE
README.md
build.sh
pwgen.go
pwgen_test.go

README.md

pwgen

cli password generator by Golang

Installation

step1. Install pwgen

  • go get (for developer)
  • Homebrew
  • download binaries (for end-user)

If you are developer (case: Linux, MacOS)

$ go get github.com/girigiribauer/go-pwgen

$ cd $GOPATH/src/github.com/girigiribauer/go-pwgen/cmd/pw

$ go install

or Homebrew (case: MacOS)

$ brew tap girigiribauer/go-pwgen

$ brew install go-pwgen

If you are end-user, you can download release binaries.

https://github.com/girigiribauer/go-pwgen/releases

step2. You can read manual

$ pw -h

Options

See pw -h

GLOBAL OPTIONS:
   --length value, -l value  password length (range is [8...64]) (default: 10)
   --count value, -c value   number of counts (default: 10)
   --digit                   add password characters 0-9
   --alphabetlarge           add password characters A-Z
   --alphabetsmall           add password characters a-z
   --underscore, -u          add password character Underscore(_)
   --specialchars, -s        add password characters special characters, exclude from Space, Backslash, Underscore and Delete
   --help, -h                show help
   --version, -v             print the version