Encrypting variables
From: David Hodgkins (DavidHodgkins_at_discussions.microsoft.com)
Date: 09/30/04
- Next message: Ralph: "Re: Will vb4-VBX control work on VB6 ?"
- Previous message: thejamie: "Re: VB6.exe abort after system rebuild?"
- Next in thread: Tim Baur: "Re: Encrypting variables"
- Reply: Tim Baur: "Re: Encrypting variables"
- Reply: Ralph: "Re: Encrypting variables"
- Reply: Bonj: "RE: Encrypting variables"
- Reply: Larry Serflaten: "Re: Encrypting variables"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Sep 2004 08:19:02 -0700
Hello all,
I have a program that has to use a hard coded UserID and password to
access an encrypted file. For example:
**********************************************************
Dim strX as string 'UserID
Dim strYas string 'password
Dim strPath as string 'path to the file
Dim secFile as New SecureFile 'class to open encrypted file
strX = "JoeSmith"
strY = "jkdlsw23gh3"
strPath = "C:\Program Files\MyDirectory\MyFile.sec"
secFile.open strPath,strX, strY
**********************************************************
The problem with this is taht if someone were to open the exe with a text
editor, the username and password are visible. My proposed solution is that
instead or typing a literal string is to concatinate together the individual
characters using the Chr() function.
Is this a valid method or is there a better method?
- Next message: Ralph: "Re: Will vb4-VBX control work on VB6 ?"
- Previous message: thejamie: "Re: VB6.exe abort after system rebuild?"
- Next in thread: Tim Baur: "Re: Encrypting variables"
- Reply: Tim Baur: "Re: Encrypting variables"
- Reply: Ralph: "Re: Encrypting variables"
- Reply: Bonj: "RE: Encrypting variables"
- Reply: Larry Serflaten: "Re: Encrypting variables"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|