Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Storing passwords in vfp dbf.
Message
From
10/12/1999 09:50:41
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00301291
Message ID:
00301663
Views:
26
>What is the best way to store a password in a table. I probably wouldn't want to just store the password as text in a field. How would you store that type of information?

I don't know if it's the "best", but an easy way to secure your passwords over plain-text is to one-way encrypt them in the table. By one-way, i mean that there should be no way to turn an encrypted password back into the password itself. (IE: If I know my password is "Secret" and i find my entry is "terceS" then i can reverse other's passwords too)

Encrypt the password that the user enters, and compare it against the encrypted value stored in the table. As long as the encryption function yields a unique result for each input, you should have an exact one-one relation between plain text, and the password table.

(i'd check that FAQ for possible encryption functions if you don't feel comfortable creating your own)
Previous
Reply
Map
View

Click here to load this message in the networking platform