However, in this case, I am configuring an email routine where I need to decrypt the email account password from the app configuration table, so I can set a property on the wwStmp class which is required to athenticate with my SMTP server. So, I *MUST* be able to retrieve the password for this purpse, but I don't want anyone on the network to open that table and see the password sitting there.
Matt,
Typically passwords stored in a database should not be encrypted in such a way that the original password can be decrypted. Instead, they are can be hashed and the hash is stored. Then during a login process, the user's password input attempt is hashed and compared to the database version. If they are the same, you have a match. Not sure if that is what you meant, but the beauty of this kind of encryption is that only the user knows his password and if your database is ever hacked or stolen, it will be able nearly impossible steal to crack the passwords.
I learned some VFP-only stuff here (http://fox.wikis.com/wc.dll?Wiki~VfpMd5HashFunction), and a long time ago did something with MD5 hashes in a VFP app. If I could find the code I would send it to you, but not sure where it is.
-phil.
Rick - I'm wanting to encrypt a password before I save it to a DBF table, and un-encrypt when I read it back out of the table. I'm creating a basic app login strategy (client app, not web).
Do any of your Client Tools classes provided this feature? Or can you recommend anything?
I'd prefer a pure FoxPro solution if possible, but I could use wwDotNetBride if I have to.