Solved Password Protecting a Database. (1 Viewer)

HillTJ

To train a dog, first know more than the dog..
Local time
Today, 11:23
Joined
Apr 1, 2019
Messages
731
Friends, I have some vague idea of protecting a project for some kind of "trial" period. My thoughts so far are to encrypt the users email address using an RC4 technique & using that for the 'product key'. Talking of "key" I don't wish to keep the encryption/decryption key in a table, which seems a bit obvious & have come across an interesting technique where I can save the encryption/decryption 'key' as a database property.

I've been playing with some code & got it all working, but question whether it is a good idea or not to save the 'key' as described.

I'm open to suggestions & welcome feedback.

Cheers.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 06:23
Joined
May 7, 2009
Messages
19,245
put the "key" in a module or as a Custom property of your db.
 

CJ_London

Super Moderator
Staff member
Local time
Today, 23:23
Joined
Feb 19, 2013
Messages
16,616
Using properties instead of tables is a common technique. Others include modifying the registry or creating a hidden file somewhere.

specifically for the key, consider using a calculated value, perhaps generated in a function
 

ahmedjamalaboelez

Ahmed J. Aboelez
Local time
Today, 15:23
Joined
Feb 25, 2015
Messages
79
I do following in my application
i keep the key in table appear to user but its more than 250 character key collect

hexdecimal 2 times Lenth of (harddriver serial & "/\" & Machine name & "/\" &username ) any time you want
hexdicimal 2 times value of (harddriver serial & "/\" & Machine name & "/\" & username ) any time you want
then convert 2 times Base64 hexdecimal Lenth & "/\" & hexdicimal value any time you want
then encrypt RC4 for the full Key
 

HillTJ

To train a dog, first know more than the dog..
Local time
Today, 11:23
Joined
Apr 1, 2019
Messages
731
Friends, thanks. It appears that my 'discovery' has some merit. @arnelgp , i shall have a look @ your demo. Cheers & thanks for the prompt response.
 

isladogs

MVP / VIP
Local time
Today, 23:23
Joined
Jan 14, 2017
Messages
18,235
Suggest you also encrypt the key itself using a different method as properties, constants, tempvars and variables can all be read...even in an encrypted ACCDE file
 

Users who are viewing this thread

Top Bottom