Where to save Python Tkinter login data

Question:

I have a Python registration and login code using Tkinter.
But, how and where can I save this recorded data so that a person who created the account on one computer can log on to another?
On google, I only find people saving the data in a local database (.db file on the computer) or in a .txt

Thanks in advance!

Asked By: Xpray 935

||

Answers:

To use .db you can use sqlite3 and working with .txtis builtin.
I would recommend hosting your data then so it is not a actual file but on the cloud for stuff like that I would recommend checking out MongoDB

Answered By: Flow

You can use a sqlite3 database, but that would not solve your problem.

The database or any other form of data source must be stored on a server that you can access. This can be on the internet or on the local network. (You didn’t specify your environment)

you could access this data source by https (don’t use http as it is clear text and not a good idea for password requests), connect to an online database or write some kind of socket server that you can connect to and get the needed information.

Answered By: Ovski
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.