Share your repls and programming experiences

← Back to all posts
Login for Python
JordanDixon1 (310)

I made a login for Python. It needs work (Encryption isn't my strong suit.) but I'm still proud of it because I'm a "little" new to programming.

Commentshotnewtop
[deleted]

Just wanted to point out that base64 isn't encryption, it is encoding. You should look at hashing (bcrypt is the type used in 2019.)

JordanDixon1 (310)

@sanjaykdragon Ok, thanks for the tip. I updated the code to have bcrypt.

Tricksyz (18)

I made your login prompt more secure by encrypting your password in an MD5 and making uchoice so that it converts to MD5 and checks if the two hashes are the same. https://repl.it/@Tricksyz/detective-log-in

JordanDixon1 (310)

@Tricksyz Do you think theres a way to encrypt the data as well?

CSharpIsGud (418)

@Tricksyz That's not really more secure, its equivalent to just comparing the passwords. Now if we were talking authentication with a server, its redundant. anything you send over a HTTPS connections is encrypted for you. if its just HTTP then md5 wont help, to quote Wikipedia Although MD5 was initially designed to be used as a cryptographic hash function, it has been found to suffer from extensive vulnerabilities. It can still be used as a checksum to verify data integrity, but only against unintentional corruption.