|
-
Nov 28th, 2007, 08:38 PM
#1
Thread Starter
New Member
Saving Username and Password
I'm looking for a way to save a users username and password. I know I could save it in the settings INI file that I'm using, but that seems just too unsecure for my taste.... Any advance would be welcomed.
-
Nov 28th, 2007, 08:46 PM
#2
Re: Saving Username and Password
Encrypt the info... you'll need to build a separate facility for managing the encrypted file.
-
Nov 28th, 2007, 08:49 PM
#3
Thread Starter
New Member
Re: Saving Username and Password
 Originally Posted by leinad31
Encrypt the info... you'll need to build a separate facility for managing the encrypted file.
Can you suggest some encryption algorithms?
-
Nov 28th, 2007, 08:49 PM
#4
Re: Saving Username and Password
Saving anywhere is "unsecure". The only question is how hard to make it seem secure. Encryption, hiding it inside an image saved to disk, writing it to an obscure key in the registry, on a secure server, in a password protected database, and several other options are available. Judge the level of security with what you are using the passwords for: a game, use simple options. For credit card info & other valuable info, use the best you can come up with.
The downside of keeping it on disk is that it can get deleted, corrupted, moved or lost. You should have a backup plan for that
Last edited by LaVolpe; Nov 28th, 2007 at 09:33 PM.
-
Nov 28th, 2007, 08:50 PM
#5
Lively Member
Re: Saving Username and Password
Here is some code to save it to registry. Replace the App-name-here with the name of the app.
Heres code to save it Note, the variable Username is the username, and Password is the password.
Code:
Savesetting("App-name-here","Saved Data","Username",Username)
Savesetting("App-name-here","Saved Data","Password",Password)
Now, here is to retrieve it.
Code:
Username = GetSetting("App-name-here","Saved Data","Username")
Password = GetSetting("App-name-here","Saved Data","Password")
Hope it helps.
-
Nov 28th, 2007, 09:01 PM
#6
Thread Starter
New Member
Re: Saving Username and Password
Ok, well I think I'll save it to the register with Rc4 or something. One question though, when I save it to register does it "Get" the same values on different users under XP and Vista?
-
Nov 29th, 2007, 05:04 AM
#7
Re: Saving Username and Password
 Originally Posted by Dustcrazy
...One question though, when I save it to register does it "Get" the same values on different users under XP and Vista?
When a user logs in to windows, they can only access their own settings using SaveSetting.
-
Nov 29th, 2007, 10:26 AM
#8
Member
Re: Saving Username and Password
Engypt username and password by MD5
Save the file into Windows Folder
I love VB6
< advertising links removed by moderator >
-
Nov 29th, 2007, 11:45 AM
#9
Re: Saving Username and Password
There are some encryption examlples in our CodeBank that you might want to check out.
-
Dec 12th, 2007, 12:52 PM
#10
Fanatic Member
Re: Saving Username and Password
 Originally Posted by The Rogue
Here is some code to save it to registry. Replace the App-name-here with the name of the app.
Heres code to save it  Note, the variable Username is the username, and Password is the password.
Code:
Savesetting("App-name-here","Saved Data","Username",Username)
Savesetting("App-name-here","Saved Data","Password",Password)
Now, here is to retrieve it.
Code:
Username = GetSetting("App-name-here","Saved Data","Username")
Password = GetSetting("App-name-here","Saved Data","Password")
Hope it helps.
when i try those, i get an error of: Syntax Error | Im using VB6 SP6
-
Dec 12th, 2007, 12:53 PM
#11
Re: Saving Username and Password
What line generates the error?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|