Python Login System With Encryption
This is a little login system a friend and I made in python. It decrypts, encrypts, and checks if the username is already taken. If you have any suggestions please feel free to leave them in the comments!
Thank you @cecook1022 for helping me with this wonderful project! I couldn't have done it without you.
This is cool! As a suggestion, maybe try hashing the passwords instead of encrypting and decrypting them.
Basically, a hash is an irreversible encryption. You hash the password they give, and store that.
When they want to login, you hash their password input and check it against the stored hash. If they match, the passwords are the same.
This makes it harder for people to break your encryption and also doesn't allow you to view their actual passwords (just a privacy thing).
Also, if you are going to use encryption to store passwords (still not recommended), use a .env file to store the key. More information here: https://repl.it/talk/ask/How-to-use-the-env-file/17121