Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CIPHER library use
Message
 
À
08/05/1998 17:24:59
Criss Jensen
Injury Prevention Research Center
Iowa City, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00098223
Message ID:
00098429
Vues:
72
>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é
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform