user3421416
user3421416

Reputation:

Should I use sqlite3 for storing username and password with python?

I am trying to build a simple login / register system with python sockets and Tkinter.

It might sound like a stupid question, but I really couldn't find by searching in Google.

I am wondering if using sqlite3 for storing username and password (with a server) is a good idea. If No, please explain why shouldn't I use sqlite3 and what is the alternative for this need.

Upvotes: 1

Views: 1176

Answers (1)

Larry Lustig
Larry Lustig

Reputation: 50970

You'll need to store the names and (secured) passwords on the server. SQLite is a perfectly good solution for this but there are many, many other ways to do it. If your application does not otherwise use a database for storage there's no need to add database support just for this simple task. Assuming that you don't have a very large and every-growing list of users it could be as easy as pickling Python dictionary.

Upvotes: 2

Related Questions