Skip to content

Storing information

Justin

Asked Feb 4, 2006, 2:36 PM EST2 answers
Share
LinkedInX
I am working on a project for a game that I play.  This program would allow a user to store login and passwords for their accounts.  They would be able to give the account a name, and then enter the login and password to be stored.  They could then select the account they would like to log into from a drop down menu and it would then launch a web browser and then log into their account.  The problem that I am having is I am not sure how to store the login/pw information. 

I do not want to create an external file and save the information there, would defeat the purpose of making logging in more secure (avoiding typing in login/pw in case of keylogger).  Does anyone have any ideas of how to accomplish this?   I have looked into storing the file as an embedded resource but from what i've seen you can only read from the file then, not write to it.

Any suggestions would be much appreciated.

Justin

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Yeah, you can't store stuff in the exe file itself (without being devious). But even if you did, it would be just as unsecure - you could always open the exe file in a hex editor and read the passwords. Your two options are either storing the passwords locally or remotely somewhere. Locally in a separate file that is encrypted would be the method I'd try myself. I'm fairly sure this is what firefox does. Chris
    0
  • 0
    VB.NET
    If you store your password/username strings to a program Setting properties, it embedds the string in the .net assembly itself (the .exe), doesen't it? (please correct me if i'm wrong!).
    First open your project Properties, and select Settings. Add a password setting as string. You can use the setting in the code like this:
    global::YourAppName.Properties.Settings.Default.password = "password";
    
    global::YourAppName.Properties.Settings.Default.Save();

    But i think the fairly safe (and free?) place would be for example SqlServer Express database. Your program need the database password to log in, so no keyloggers can access into it.

    0