gwinn7,
Is that your age? Quite precousous(sp?).
Oh - well. to the question(s).
If you maintain an internal table within the MDE, you need some way to 're-write' the MDE file the information so that the changes are retained. This CAN be done, but it is somewhat involved and my opinion is that anyone asking this question is not quite ready for this level of convoluted thinking or the level of programming.
I don't think a random key would work for much the same reasoning as above. If you create a random key, you will need to also keep track of it's random-ness. this goes back to the above.
What I meant was to pick a key whose name and location would be rather obscure and certainly NOT related to the app name in any way. This is just to keep honest john honest. Place some value in this key. Almost any simple encryption process will keep the casual user from seeing it's value, and that is more or less all i'm attempting to do, keep the 'secrete' from prying eyes.
As an example, let's say the app was "MyUserDb.MDE". I might create a Key "HKEY_LOCAL_MACHINE\Software\BTRieve\TrashCollector" and assign its a value Of DateAdd("m", 1, Date) - encrypted with my own name (or just Acme Construction Company Inc.) It makes little difference, since the construction of the key and the value are hidden within the MDE program.
The 'risk' is only that someone has the desire and patience to be a real thief. He/she will be able to get through this scheme in less than five minutes. (although I will not describe the process) Once the code is 'broken' all the thief need to do is just wipe out the key every month. Dum-Dum the program will just look fior the key, not find it and hapily re-create it.
MichaelRed
redmsp@erols.com
There is never time to do it right but there is always time to do it over