Skip to content

A simple and secure command-line password generator written in Go

Notifications You must be signed in to change notification settings

anthony-leborgne/Password-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Password Generator

A simple and secure command-line password generator written in Go. This tool allows users to generate random passwords with customizable options such as length, and the inclusion of uppercase letters, numbers, and special characters.

Features

  • Customizable Password Length: Easily specify the length of the password.
  • Character Customization: Choose to include uppercase letters, numbers, and special characters for a stronger password.
  • Secure Generation: Utilizes crypto/rand for cryptographically secure random number generation, ensuring high-quality randomness.
  • CLI Interface: Built for command-line usage, making it perfect for integration into scripts or quick generation on demand.

Installation

Prerequisites

  • Go must be installed on your system.

Clone the Repository

To get started, clone the repository and navigate into the project directory:

git clone https://github.com/anthony-leborgne/Password-generator.git
cd Password-generator

Build the project

To build the executable, run:

go build -o passwordgen passwordgen.go

Run the Password generator

After building the project, you can generate passwords by running the following command in your terminal:

./passwordgen --length=16 --upper=true --numbers=true --symbols=true

This command generates a 16-character password that includes uppercase letters, numbers, and special characters.

Usage

Flag Description Default Value
--length Set the length of the password (positive integer) 12
--upper Include uppercase letters in the password (true/false) true
--numbers Include numbers in the password (true/false) true
--symbols Include special characters in the password (true/false) true

About

A simple and secure command-line password generator written in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages