Author: Dan Honeycutt
Date: 17:45:15 04/27/05
Go up one level in this thread
On April 27, 2005 at 11:57:56, Brian Kostick wrote: >I wrote a little password masking function for Win32 console. I'd like to hide >string literals in my executable. I know such things have been mentioned here >before for more clandestine purposes. My question is, is there an easiest way to >do this or should I use an encryption or lookup function? > >Thanks, >Brian Hi Brian Sometime back I had occasion to develop a small MS Access database app consisting of a single table and a form to view the table. If you open the table directly, all you see is gibberish. If you open the form, it asks you for a password. If you give it the correct password you see the table data in plain text and you can add, edit or delete records in the normal manner. If you give it an incorrect password, you again get gibberish. It uses a simple xor encryption scheme like Bob described except the password itself drives the encryption process. Thus the form does not know the password but rather learns how to encrypt/decrypt the data from the password. That way, if someone steals the database, they can get to the code behind the form and see exactly how it works, but they still can't get to the data in the table without the password. It would not stop a cryptology expert like Dieter says, but for the average hacker it would be a pretty tough nut to crack. If you think it would be any use to you for what you're doing I'll gladly send you a copy. Best Dan H.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.