This password generator tool generates strong and random passwords for online protection which gives you custom passwords based on the preferences for the number of letters, symbols, and numbers included.
- clone this repository:
git clone https://github.com/imbazinga/password_generator- run the python script:
python generate.pyIn the save_passwords function, replace the following path with the actual path where you want to store the passwords:
def save_passwords(self):
with open(r"path/to/your/directory/pass.txt", "w") as file:
file.write("\n".join(self.history))In Load_passwords function, replace "your created file" with your actual filename to see the last generated passwords in the output:
def load_passwords(self):
try:
with open("your created file", "r") as file:
self.history = file.read().splitlines()