General information
Category:
Coding, syntax & commands
Interesting idea.
I agree that it's not foolproof. I couldn't use it for a widely distributed app. But maybe something along these lines for isolated corporate stuff.
Guy
>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
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only