Skip to content

ebourgess/password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password Generator

A simple password generator written in Go.

As Posted on ebourgess.dev

Description

This script generates random passwords based on user-defined criteria such as length and character types.

Features

  • Customizable password length
  • Option to include uppercase letters, lowercase letters, numbers, and special characters
  • Secure and random password generation

Installation

  1. Clone the repository:

    git clone https://github.com/ebourgess/pass-generator.git
  2. Build the executable:

    go build pass-generator.go
  3. To use it globally move it to /usr/local/bin

    sudo mv pass-generator /usr/local/bin

Usage

pass-generator -h
    --digits
        Use digits
    --length int
        Password length (default 12)
    --lower
        Use lowercase letters (default true)
    --special
        Use special characters
    --upper
        Use uppercase letters (default true)

In order to use this simply run the command

pass-generator --length 32 --digits --lower --special --upper

Keep in mind that by default, length is 12, lower and upper are both enabled. So if you need to add digits or special characters, you will need to add the flags special and upper to your command.

Test your new password

In order to test your password's strength, copy and paste it here

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages