Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CIPHER library use
Message
 
To
08/05/1998 17:24:59
Criss Jensen
Injury Prevention Research Center
Iowa City, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00098223
Message ID:
00098429
Views:
71
>I am trying to use the Cipher30.fll to encrypt certain fields in certain tables. My question is where does the code go? Does the .fll file need to be in a certain directory (like my source code directory)? Does it need to be included in my project. Where do I use the function call to encrypt/decrypt these fields on my form? The documentation isn't enough for a rank beginner like myself. Please don't suggest one of the other 3rd party products. This project has no $$$$ to purchase any additional software. Thanks in advance for help. Criss

Criss,

Place the CIPHER30.FLL in your application root directory, just where the EXE will reside. By the way I suppose you're with VFP 3. Otherwise you'll need CIPHER50.FLL.


Then, in your startup file:

SET LIBRARY TO CIPHER30 ADDITIVE

Then when you want to encrypt some field
lcValue = ENCRYPT(tablename.FieldName, "yourPassword")

and to decrypt
lcValue = DECRYPT(tablename.FieldName, "yourPassword")

Example:
lcValue = ENCRYPT("test", "JOSE")
? DECRYPT (lcValue, "JOSE") && should give you the string "test"

José
Previous
Reply
Map
View

Click here to load this message in the networking platform