I'm making a chat program and I want the user to have to login. I figure the username/password would be sent to the server where it will check a file to see if that username/password is in the file. If so let them login. I differentiated a login with username/password from a message being sent by the first couple letters of the
string being something like 'login1234' or something. The obvious downside is if a user sends a message that begins with 'login1234'
How do you guys take care of this?