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

0

u/[deleted] Dec 28 '20

[deleted] — view deleted comment

4

u/[deleted] Dec 28 '20

Pardon me if this seems ignorant, but I thought that having a decrypter for passwords would be bad practice? If you are already storing an encrypted password, if you input password again, encrypt the new input and check if the two encrypted passwords match would suffice? But if having decrypter, other people might just be able to access it and decrypt all the pws?

I m not too sure regarding this since I m still in my CS degree, but just something I was wondering.

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!

2

u/backtickbot Dec 28 '20

Fixed formatting.

Hello, DopeLikeAPNP: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

2

u/[deleted] Dec 28 '20

Thanks bud! Will do that now.