Skip to content

erpycode/Password_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Password Generator πŸ”

A clean and simple Python tool to generate a strong password, copy it to the clipboard, and optionally save it with a custom label.

🌐 Switch to Persian


What this program does

  • Prompts the user for a password length between 8 and 20 characters.
  • Uses Python's secure secrets module to generate random characters.
  • Builds a password from lowercase letters, uppercase letters, digits, and symbols.
  • Prints the generated password on the screen.
  • Copies the password automatically to the clipboard using pyperclip.
  • If the user chooses to save, asks for a name and appends the password to Password.txt.

Requirements

  • Python 3.x
  • pyperclip library

Install the required package with:

pip install pyperclip

How to run

Run the program from the project folder:

python password_genartor.py

Then follow the prompts:

  1. Enter the desired password length (8 to 20).
  2. The program generates a secure password.
  3. The password is printed and copied to the clipboard.
  4. When asked, type y to save the password.
  5. If saving, enter a name for the password and it will be appended to Password.txt.

Notes

  • If you enter a number outside the allowed range, the program will ask again until a valid number is entered.
  • The password may include special symbols, so make sure your destination supports them.
  • When saved, each password is added to Password.txt with the label you provide.

Thank you for using this password generator! πŸš€

About

πŸ” A simple and secure Python password generator that creates strong passwords, copies them to clipboard automatically, and optionally saves them to a file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages