pwd-cli
With this CLI Tool, you can generate your own password with specific parameters. You can get custom password with "-s 7, -n 3, -c -x" flags.
Flags:
|
pwd-cli |
pwd-cli -s 8 -n 3 -c -x |
- -s, --str int Length of string characters in Password
- -n, --num int Length of number characters in Password
- -h, --help Help for pwd-cli
- -c, --capital bool Is there any capital letter ?
- -x, --symbol bool Is there any symbol letter ? It's Length is allways => "len(str)/3 + 1"
Default Command: "pwd-cli"
Example Usage:
Usage: pwd-cli [flags]
- "pwd-cli -s 8 -n 3 -c"
- "pwd-cli -s 10 -c -x"
- "pwd-cli -n 6"
- "pwd-cli --str 6 --num 2 --capital --symbol"
- "pwd-cli" => default: 'pwd-cli -s 8 -n 0 -x 0 -c 0'

-c flag gets "true", if there is "-c" flag. If there is no -c flag, -c flag gets "false" value.
-s flag gets default 8 value.
-x flag means put symbol in Password. Default symbol length formule is => "len(string)/3+1"
How to install pwd-cli (Random Password Generator):
![]() |
go install github.com/borakasmer/[email protected] |
- "go env" With the command "GOPATH" and "GOROOT" folders of GO can be seen.
- On Mac after "go install ..." the "go/bin/pwd-cli" file under GOPATH => should be copied under "go/bin/" folder under GOROOT.
- In Windows, there is no need to further action
β
--------------------------------------------------------------------------------------------------------------
- "-s 10" The Length of String Characters in Password is 10 and none of them is Capital. The default value is 8.
- "-n 7" => The Length of Number Characters in Password is 7
- "-s 5 -c" => The String Length of Password is 5 and some of them are Capital!
- "-s 6 -x" => The String Length of Password is 6 and (6/3+1) =>3 characters are Symbol! Total length of Password is 9
- "pwd-cli" command => By default it means "pwd-cli --str 8 --num 0". And there is no Capital letter in the Password.