Simple command-line password generator written in Go
bin | ||
.gitignore | ||
go.mod | ||
LICENSE | ||
main.go | ||
makefile | ||
README.md |
GoPass
An easy to use command-line password generator that creates secure passwords
Usage:
./gopass [number of characters]
or
./gopass [number of characters] -r=[excluded characters] [-s to remove all symbols]
eg: ./gopass 32
output: E$bGOiiPASS*,ISl{!MJ&<\[COOL0eVw
eg: (with excluded characters): ./gopass 32 -r=$,!
output: EYbGOiiPASS*2ISl{?MJ&<\[COOL0eVw
<- note the excluded characters are not present in the output
eg: ./gopass 32 -s
output: LEYbGOiiPASS2ISlMJCOOL0eRt3KPOVw
<- note the symbols are not present in the output
eg: ./gopass 32 -r=$,! -s
the -r and -s flags can be combined
How to install/use for Windows:
- Download Windows binary, it may be helpful to simply rename it to "gopass.exe" (make sure to add .exe, this won't need to be typed to execute the file from the CLI, but it is required for Windows to recognize the binary) to keep commands shorter.
- Move the file to your
C:\Users\[Username]
directory - Opening the console without Administrator privileges will put you in the directory mentioned above by default
- Now type
gopass [number of characters]
(Ex.gopass 64
) to generate a new password!
How to install/use for Linux:
- Download Linux binary, it may be helpful to simply rename it to "gopass" to keep commands shorter.
- Move the file to your home directory.
chmod +x gopass
if necessary- Opening your terminal should put you in your home directory by default, if not, just type
cd
to get sent back to home. - Now type
./gopass [number of characters]
(Ex../gopass 64
) to generate a new password!