Skip to content
Sign upLog in
← Back to Community

Login for Python

Profile icon
JordanDixon1

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.

Voters
Profile icon
HiraOli
Profile icon
Cindy-walfidaya
Profile icon
dhecilc
Profile icon
GanLee
Profile icon
sangeetha944
Profile icon
ManishaMishra3
Profile icon
HackermonDev
Profile icon
JordanDixon1
Comments
hotnewtop
Profile icon
[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.)

Profile icon
JordanDixon1

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

Profile icon
dhecilc

Jujur

Profile icon
RahmaAulia22

Hyy

Profile icon
OliviaSekar

kangen sama seseorang yang sekarang asing padalah dulu sedeket itu :)

Profile icon
yassinelsayed

what is the password?

Profile icon
JordanDixon1

@yassinelsayed
this post is a little old so I am not sure, however, you can change the password using the code. In the meantime i will try to figure it out

Profile icon
JordanDixon1

@yassinelsayed
Alright, I changed the password to abrahamlincoln.

Profile icon
JordanDixon1

@JordanDixon1
(password is not case sensitive)

Profile icon
yassinelsayed

@JordanDixon1
Ok thank you, do you mind telling me how to change the password?

Profile icon
JordanDixon1

@yassinelsayed
just go to a bcrypt generator site and encrypt your new password and copy it, then go to where it says mpassword = ""
And replace the inside of thr string with your passcode. When the login comes up, type in the unencrypted password and follow the instructions to change the password. The Master password you set can be used anytime you wqnt to login but forgot the password to change it. Useful for an admin and a client wanting to use the app but forgot thr password.

Profile icon
yassinelsayed

@JordanDixon1
thank you.

Profile icon
JordanDixon1
Profile icon
Tricksyz

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

Profile icon
JordanDixon1

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

Profile icon
CSharpIsGud

@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.

Profile icon
HackermonDev

This is cool!

Profile icon
JordanDixon1

@PDanielY
Thanks!