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
IF .NOT. ENCRYPT(TextBoxWithChoosenPassword.Value, "YourChoosenPassWord") == Login.UserPasswordField
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.