Skip to content

CLI tool in Go with the Cobra library for generating random passwords with options to specify password length, inclusion of digits and special characters.

License

Notifications You must be signed in to change notification settings

neerrrajj/go-passgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator Tool

This CLI tool, written in Go, generates random passwords with customizable options. Users can specify the password length and choose to include digits and special characters.

Installation

  1. Clone the repository:

    git clone https://github.com/neerrrajj/go-passgen.git
    cd go-passgen
  2. Install dependencies:

    go get github.com/spf13/cobra

Usage

Run the application with the desired options:

go run main.go generate -l 12 -d -s

Command options:

  • -l, --length: Length of the generated password (default is 8).
  • -d, --digits: Include digits in the generated password.
  • -s, --special-chars: Include special characters in the generated password.

Output:

generating password...
aB3$dFg7HiJkLmN9

About

CLI tool in Go with the Cobra library for generating random passwords with options to specify password length, inclusion of digits and special characters.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages