From b5c210ccb41ec3001b898cbc3f2ae6838261711c Mon Sep 17 00:00:00 2001 From: Kin Learns <109691311+kinlearn@users.noreply.github.com> Date: Fri, 20 Oct 2023 15:45:30 +0530 Subject: [PATCH] Update README.md --- P/password-generator/README.md | 54 ++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/P/password-generator/README.md b/P/password-generator/README.md index e69de29b..1a76b73e 100644 --- a/P/password-generator/README.md +++ b/P/password-generator/README.md @@ -0,0 +1,54 @@ +# Password Generator + +A Python script for generating random passwords with various configurations. You can specify the number of digits, lowercase characters, uppercase characters, and special characters in the generated passwords. Additionally, you can generate completely random passwords with a specific total length. + +## Usage + +### Requirements + +- Python 3 + +### Running the Script + +1. Clone or download this repository to your local machine. +2. Open a terminal or command prompt. +3. Navigate to the directory where the script is located. +4. Run the script with the desired options. + +#### Command Line Options + +- `-n` or `--numbers`: Number of digits in the password. +- `-l` or `--lowercase`: Number of lowercase characters in the password. +- `-u` or `--uppercase`: Number of uppercase characters in the password. +- `-s` or `--special-chars`: Number of special characters in the password. +- `-t` or `--total-length`: The total password length. If provided, it overrides other character count options. +- `-a` or `--amount`: Number of passwords to generate (default is 1). +- `-o` or `--output-file`: Name of the output file to store generated passwords (optional). + +#### Examples + +Generate a single password with 8 digits, 4 lowercase letters, 2 uppercase letters, and 2 special characters: + +```bash +python password_generator.py -n 8 -l 4 -u 2 -s 2 +``` +Generate 5 passwords with a total length of 16 characters each: +```bash +python password_generator.py -t 16 -a 5 +``` +Generate a single completely random password with a total length of 20 characters: +```bash +python password_generator.py -t 20 +``` +Save the generated passwords to an output file: +```bash +python password_generator.py -n 8 -l 4 -u 2 -s 2 -o passwords.txt +``` + +#### License +There's no information about the license. If you are original author of this code, please raise an issue. + +--- + +Feel free to use this password generator to create strong and secure passwords for your needs. If you have any suggestions or encounter issues, please open an issue in this repository. +