I am trying to password protect my website, where it asks for a username and password before entering.
But is there a way to allow it so that my python script can access the contents and text on the site, but ask for a password with normal users
Now that I can see your program (Stalking skillz (not really)) I see a small problem:
hash_username = hashlib.pbkdf2_hmac('sha256', bytes(username, 'utf-8'), b'salt', 150000) hash_password = hashlib.pbkdf2_hmac('sha256', bytes(password, 'utf-8'), b'salt', 150000)
USE SHA512! it's not that important but I like it a lot more.
Also, the text isn't that secure yet. Do you know how to write files?
YAY. I am very happy in completing my first programming challenge. Maybe it wasn't an official one, but it is a challenge. 20 minutes spent on this.
@AzureScripts well there you go. I was thinking of writing a .env file with all the website's actual content, like if you put all the content to be printed out in a module in the middle of a .env file and then made it so that the login module called the module inside of the .env file... a little complicated, but I gave you the answer up there. Can you accept it? Or this one?