[Pratik Merekar]


PROJECT: passgen

20 May, 2024


Repository link: https://github.com/ProgrammerPratik/passgen


Overview:

Simple and powerful CLI-based password generator made with modern C++




features:


Installation:

1. Clone the repository:

git clone https://github.com/ProgrammerPratik/passgen.git

2. Compile the program:

g++ -o passgen passgen.cpp

3. Adding to PATH Environment Variable (if you want instant access anywhere)

Windows

  1. Compile and copy path to the file.
  2. Search 'Environment Variables' and open it.
  3. Under 'System variables', find and select 'Path', then click 'Edit'.
  4. Click 'New' and add the full path to the directory containing passgen.exe (that you copied before), and save.

Linux:

  1. Compile and copy path to the file.
  2. Open terminal and paste the following (replace the path with actual path):
    export PATH=$PATH:/[path]
  3. Save the file and reload the configuration:
    source ~/.bashrc    # or source ~/.zshrc

Usage:

Basic syntax:

passgen -l <length> -m <mode>

More:

passgen -l <length> -m <mode>
there are 3 modes i.e. 0,1,2
-h for help

OPTIONAL ARGUMENTS:
-l OR -length length of password
-m OR -mode mode of password (0=only letters,1=random,2=alphanumeric)
-h OR -help for more info
-v OR -version version info and stuff

Test Examples:

Password generation with mode 0 (only letters)

passgen -l 10 -m 0 
wJtPhQGHuMEAy <- output

Password generation with mode 1 (random)

passgen -l 8 -m 1 
8%5E{6?_

Password generation with mode 2 (alphanumeric)

passgen -l 10 -m 2  
8G5Ey68237