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
I'd say one of the easiest ways to set up a database is using jsonstore.io. You don't even have to log in, all you need to do is grab your endpoint and start working with it.
If you're working with python, you can use leon's client for jsonstore, which will make it even easier.
As for making it secure, you'd use a
.env file to store your endpoint like @AllAwesome497 mentioned, to make it so that people can't just come along and see what's in your database. Only you can see what's in your
If you want to see or modify your database, you can use reqbin to manually send http requests to your endpoint.
As long as you don't disclose your endpoint to anyone, this method should ensure that nobody can see anyone else's information, and you can change any information at any time.
If you're stuck anywhere, I'll be happy to help!
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