Skip to content

Latest commit

 

History

History
45 lines (28 loc) · 1.85 KB

README.md

File metadata and controls

45 lines (28 loc) · 1.85 KB

Password Generator

About Project

The Password Generator is a Python program that allows users to generate random passwords of a specified length. By taking user input for the desired password length, the code generates a password consisting of letters, numbers, and special characters.

Problem Statement

The project aims to solve the problem of creating secure and random passwords for various purposes, such as online accounts, applications, or systems. By providing a simple and customizable password generator, users can generate strong passwords of a desired length.

Algorithm

The algorithm used in the Password Generator is as follows:

  1. Prompt the user to enter the desired length of the password.
  2. Prepare a string containing all possible characters that can be used to generate the password, including lowercase letters, uppercase letters, digits, and special characters.
  3. Randomly select characters from the string to form the password.
  4. Print the generated password.

Python Skills Learned

During the development of this project, the following Python skills were utilized:

  • Working with the random library: generating random values.
  • String manipulation: joining characters to form the password.
  • User input: obtaining user input for the desired password length.

Installation

To run the Password Generator program, no additional libraries are required. Simply clone the repository or download the source code file.

Usage

  1. Open a terminal or command prompt.
  2. Navigate to the project directory.
  3. Run the following command to start the Password Generator:
    python password_generator.py
  1. Enter the desired length of the password.
  2. The program will generate a random password using a combination of letters, numbers, and special characters.
  3. The generated password will be printed to the console.