Password Manager Project
Password Manager Project
Project Description:
This project is a simple password manager implemented in Python using the cryptography
library. It provides basic functionalities such as adding new passwords and viewing existing ones,
all while ensuring the security of stored passwords through encryption. Users can securely store
their account credentials and retrieve them as needed.
Statement of Problem:
In today's digital age, individuals often struggle to manage numerous passwords across various
online accounts securely. Memorizing passwords for each account can be challenging, leading to
the use of weak or repetitive passwords, which pose a significant security risk. Additionally,
storing passwords in plaintext files on local devices leaves them vulnerable to unauthorized
access.
To address these challenges, this project aims to develop a password manager that allows users
to securely store and manage their passwords. The password manager will employ encryption
techniques to safeguard stored passwords, ensuring that even if the storage file is compromised,
the passwords remain unreadable. The manager will offer functionalities for adding new
passwords and viewing existing ones, providing a convenient and secure solution for password
management.
Source code:
'''
def write_key():
key = Fernet.generate_key()
key_file.write(key)'''
def load_key():
key = file.read()
file.close()
return key
key = load_key()
fer = Fernet(key)
def view():
data = line.rstrip()
fer.decrypt(passw.encode()).decode())
def add():
while True:
mode = input(
"Would you like to add a new password or view existing ones (view, add), press q to quit?
").lower()
if mode == "q":
break
if mode == "view":
view()
add()
else:
print("Invalid mode.")
continue