>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é