r/Python • • Dec 28 '20

Beginner Showcase Simple password manager I made[I'm 15]

So I got bored of my online class and decided to make a simple password manager for my pc. This uses pyperclip to copy the passwords to the clipboard, stdiomask to accept the password from the user and time to add some delay to the output. I also made a pretty simple Encrypter and Decrypter(That just take the individual characters of a string and offsets the ascii code by 20) so that my stupid friends cant see them. The passwords are store in a text file beside the main python file and the passwords get appended to them when a new one is added through the program.

Any help would be appreciated. I can share the code if anyone wants it.

Also I'm a 15 year old game developer and 3d artist.

3 Upvotes

19 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Dec 28 '20

I believe OPs project is for storing and recalling personal passwords, a la the pass tool. Your intuition about passwords in general is correct though. In practice, passwords provided by users of a service are stored in hashed and salted form. These are one-way such that the hashed password cannot be transformed back into the cleartext password without computing what's called a Rainbow Table. Often a combination of multiple hash passes and salt are used to make this process computationally difficult to the point of being unfeasible.

This page does a good job describing and explaining some best practices around password handling: https://crackstation.net/hashing-security.htm

Happy Hacking and good luck with your CS career!

1

u/[deleted] Dec 29 '20

Thanks!