If i decide to make a program with a working login feature, which would be public.
Is there a way to make it so that i can have a database setup on a website with all the login info?
But have it secure enough so you can't just open the .py and get all the usernames and passwords
https://Mlab.com offers a free 500mb on your first cluster. just put the link (with the actual password and username, ofc) in a file named
to connect, do the same thing it says to do in the guide for py, but instead, add
link = os.environ.get("MLAB_LINK") (
import os at the beginning of the file, ofc) and do what it says to do and use the link from env to connect. If u have any questions, or you need additional help, feel free to reply. if this answers your question, please mark as correct and upvote.
@AzureScripts It seems like
the_hash has the same value you expected, but the response you're getting from doing this
r = requests.get('https://xsecurity.000webhostapp.com/app/database.txt')
seems to be nothing (I printed it out for you to see).
What is this website you're sending a request to? What do you expect to be in the response?
I am trying to grab the text on the site
i can do this by doing "for line in r: print(line)"
but it still doesn't work.
I am trying to get all the text on the site, to see if the hash is there.
And if the hash is there, it goes to another function called program() where the main stuff will be