Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where do you hide encryption keys?
Message
From
26/08/2004 16:35:13
Seth Maxwell
Prospect Information Network
Daytona Beach, Florida, United States
 
 
To
13/08/2004 09:41:41
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00932764
Message ID:
00936765
Views:
20
One idea, although not 100% failsafe...

Try storing the key value encoded. The encoded key will look much more like the rest of the hex stored in the exe, if viewed in a text editor. This ~could~ be reverse-engineered, but the hack would have to know your setup, figure out the encoding used, get your encryption api, AND find and decode your key in the compiled code. Not likely

*- choose a key, and do following in command window
lcKey = "your key here"
_cliptext = STRCONV(lcKey,13)

*- in some header file
#DEFINE C_KEY "ctrl+V" && (paste in your encoded key)

*- function to decrypt a value
FUNCTION mydecrypt
LPARAMETERS tcValue
RETURN decrypt(tcValue,STRCONV(C_KEY,14)) && cipher50.fll
ENDFUNC

*- function to encrypt value
FUNCTION myencrypt
LPARAMETERS tcValue
RETURN encrypt(tcValue,STRCONV(C_KEY,14)) && cipher50.fll
ENDFUNC

-> Seth
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform