Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding an encryption pw in code
Message
From
21/06/2006 12:21:33
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01130320
Message ID:
01130539
Views:
16
>I am using the VfpEncryption71.fll and love it. The one thing I can't figure out is a way to hid the passwords in code. What I mean by this is I have a number of fields where I am encrypting the data and I have a common, very strong, password for these. The fields hold things I don't want the customer or anyone else to get to or change. I have it hard coded into the prg and the project is encrypted but I'm sure that can be easly broken. Any suggestions?

You can build the password using sys(2007) of an innocuous string, while using val(sys(2007),"another string") as seed value. The strings may be your table aliases, which would appear in code anyway. That way you don't store the password anywhere.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform