Giter Site home page Giter Site logo

sanders003 / password_generator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Password Generator Tool using standard Python Library

Python 100.00%
python-random python-random-function python-string python-string-maupulation python-string-methods python-strings python-strings-utility python3

password_generator's Introduction

Password Generator Tool

This Python script generates a random password based on the user's specified choice of character sets and the desired password length.

Table of Contents

How It Works

  1. User Input for Password Length:

    • The user is prompted to input the desired length of the password.
  2. Choosing Character Sets:

    • The user is presented with four options to include in the password:
      1. Digits
      2. Letters
      3. Special characters
      4. Exit (to finish selecting character sets)
    • The user can select one or more of these options to build a custom character set for the password.
  3. Password Generation:

    • A random password of the specified length is generated using the chosen character set.
    • The script ensures that the password is composed of characters randomly picked from the selected sets.
  4. Displaying the Password:

    • The generated password is displayed as a string.

Features

  • Secure Random Generation: Utilizes Python's random.choice to ensure secure random selection of characters.
  • Customizable Character Sets: Allows users to choose from digits, letters, and special characters.
  • User-Friendly Interface: Easy-to-use command-line interface for input and selection.
  • Flexible Length: Generates passwords of any specified length based on user input.

Installation

To use this application, you'll need to have Python installed on your machine. Follow these steps to set up the application:

  1. Clone the repository:

    git clone https://github.com/Sanders003/password_generator.git
    cd password_generator
  2. Install dependencies: There are no external dependencies for this application. It uses Python's standard library.

Usage

You can use the application through the command line. Simply run the Python script and follow the prompts:

python password_generator.py

Example

Enter password length: 12
Choose character set for password from these : 
        1. Digits
        2. Letters
        3. Special characters
        4. Exit
Pick a number: 1
Pick a number: 2
Pick a number: 3
Pick a number: 4
The random password is A7!bC9#dE3$

In this example, the user chose all three character sets (digits, letters, and special characters), and a 12-character long password was generated using characters from the selected sets.

Contributing

Contributions are welcome! If you have any ideas for improvements or new features, please open an issue or submit a pull request. Here's how you can contribute:

  1. Fork the repository.
  2. Create a new branch for your feature (git checkout -b feature-name).
  3. Make your changes and commit them (git commit -m 'Add some feature').
  4. Push to the branch (git push origin feature-name).
  5. Open a pull request.

License

This project is an open source application.

Contact

If you have any questions or suggestions, feel free to reach out to me at [email protected] Or comment your suggestions in the code after the 45th line in the 'pass_gen.py' file.


Thank you for using the Password Generator Tool! We hope it meets your needs effectively.

password_generator's People

Contributors

sanders003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.