Reputation: 510
For fun I am writing code that will hash a password with salt, just to try out (not for actual usage).
The problem is, I do not know how to store these passwords - If it was on the users hard drive, wouldn't it be insecure and only accessible by the person using it?
Can I store this file of hashed passwords + salt on Google drive, or some other online database? If so, how can this be accessed using python? I know you can do:
File = open('passwords.txt')
But how would this work with an online database?
Thanks for any responses :)
Upvotes: 0
Views: 606
Reputation: 7826
You're right, you would need to host the file somewhere online so that it can be accessed from anywhere.
Since you're doing this for fun, you could easily store the file in, say, Dropbox, or in Google Drive as you suggested. You could then get a sharing link for the file. Using the urllib or requests module, any user could then read this file.
This is definitely not advisable if you're trying to actually implement this, but would work fine if you're just messing around.
(A slightly more 'serious' way, but still simple, would be to host a small app on something like Heroku to hold the database.
Upvotes: 1