PasswordGen is a simple command-line tool written in Go that generates random passwords.
This Go application utilizes the crypto/rand package to generate cryptographically secure random passwords. The generated passwords can be customized by specifying the length and character sets used.
To generate a random password, you can use the following command:
PasswordGen
-l
: Specifies the length of the generated password. Default is 12.-d
: Includes digits to password generated.-s
: Include special characters in the character set.
Generate a password with a length of 16 characters using only lowercase letters:
PasswordGen -l 16 -s
Generate a password with a length of 20 characters using alphanumeric and special characters:
passwordgen -l 20 -d -s
To install PasswordGen, you can use go get
:
go get github.com/Unintellectual/PasswordGen
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch to your fork.
- Open a pull request.