Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using cipher to encrypt
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00960312
Message ID:
00960318
Views:
12
Put SET LIBRARY TO Cipher50.FLL in Your Main.PRG
In the form where You register User put:
SELECT Login
REPLACE UserPasswordField WITH ENCRYPT(TextBoxWithChoosenPassword.Value, "YourChoosenPassWord")
If the LogIn Form Where The User type his/her password
** I assume You already Find the record for the User In Login.DBF
IF .NOT. ENCRYPT(TextBoxWithChoosenPassword.Value, "YourChoosenPassWord") == Login.UserPasswordField
   * Not a valid PassWord
ENDIF
Keep in mind that You may Use PADx() function to equalize the LEN of The Field & LEN of Returned from ENCRYPT() value

HTH







>I have downloaded the cipher encryption tools from the downloads section. There are 2 files namely cipher30.fll and a readme text file. The text file explains the usage i.e.
>encrypt(plaintext,password). How do I incorporate this into my program.
>
>I basically have a logon screen where the user enters a username and password. What I would like to do is encrypt the password in the login.dbf password field.
>
>How do I use the syntax and where do I put the FLL file. Any help would be gratefully appreciated. Many Thanks
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform