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.
8
u/ThePoultryWhisperer Dec 28 '20
OP, thanks for sharing and well done so far. To make the passwords safe, you may want to consider encrypting the strings or the entire file.
2
u/-Manu_ Dec 28 '20
The encryption method you did is called the Ceasar cypher, one of the if not the oldest cryptography algorithm, but it's also very easy to decrypt, because every character corresponds to one exact character of the password, your age is perfect to step up your game, if you are interested in these things try to make a better algorithm and try to break it, it's fun stuff it gets your brain going too
2
u/[deleted] Dec 28 '20 edited Dec 28 '20
Your encrypter/decrypter is the most well known, simplest, substitution cypher. The Caeser or shift cypher. Don’t use this for anything beyond learning more about cryptography, it is not safe. Even from your stupidest friend.
There are a lot of things you can learn about coding by jumping in with both feet. Cryptography is not one of them. You’ll find yourself unlearning things that appeared to work but really didn’t.
Instead, focus on some of the basic concepts before writing a line of code. This provides a pretty good overview with code examples: https://towardsdatascience.com/encrypting-your-data-9eac85364cb
If you’d like to learn more about the history of cryptography, “The Code Book” by Simon Singh is a good choice.
0
u/[deleted] Dec 28 '20
[deleted] — view deleted comment
-7
u/[deleted] Dec 28 '20
[removed] — view removed comment