To install PGen using Go, run the following command:
go install github.com/hrrydgls/pgen@latestThis will download, build, and install the tool to your $GOPATH/bin or $GOBIN directory.
Download the pre-built binary for your platform from the releases page:
sudo curl -L https://github.com/hrrydgls/pgen/releases/download/v1.0.0/pgen -o /usr/local/bin/pgen && sudo chmod +x /usr/local/bin/pgencurl -L https://github.com/hrrydgls/pgen/releases/download/v1.0.0/pgen-windows.exe -o pgen.exeNote: You may need to add the current directory to your PATH or move pgen.exe to a directory in your PATH to run it without specifying the path.
sudo curl -L https://github.com/hrrydgls/pgen/releases/download/v1.0.0/pgen-mac -o /usr/local/bin/pgen && sudo chmod +x /usr/local/bin/pgenAfter downloading, you can run the binary directly.
pgen length [options]
# length is 8 by default and options are ulns
# Options:
# u -> upper case
# l -> lower case
# n -> numbers
# s -> symbols
You can even run it like this:
➜ pgen 20
j3T72Y869XDM}8U9?d)v
➜ pgen 20 u
YGRMKFFNSPQFJHPWVNGZ
➜ pgen u
TTVEXFTK
➜ pgen
3/B{2NZe