Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where do you hide encryption keys?
Message
De
26/08/2004 16:35:13
Seth Maxwell
Prospect Information Network
Daytona Beach, Floride, États-Unis
 
 
À
13/08/2004 09:41:41
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00932764
Message ID:
00936765
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform