IMPORTANT: The functions within this FLL have changed. Please refer to the latest documention for the VFP Encryption FLL that can be found at the following link:
http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,db662a8f-d47c-46c8-b0d2-a591c20d024b.aspx
What I wanted was something extremely secure and reliable that was also very simple to use. So, I sat down and wrote an FLL that gives Visual FoxPro developers access to the Blowfish cipher (this is not a mini version of Blowfish, this is fullblown 16-Round based on work by Bruce Schneier & Jim Conge). Some good information is available at the links below for those of you that might not be familiar with Blowfish...
http://en.wikipedia.org/wiki/Blowfish_(cipher)
http://www.schneier.com/paper-blowfish-oneyear.html
SET LIBRARY TO LOCFILE("vfpencryption.fll") cEncryptedString = BFEncrypt("Credit Card #35823908523105009", "My_SeCuRe_PaSsWoRd_kEY") ? "Encrypted As: " + cEncryptedString cDecryptedString = BFDecrypt(cEncryptedString, "My_SeCuRe_PaSsWoRd_kEY") ? "Decrypted As: " + cDecryptedStringFiles can also be encrypted, simply use STRTOFILE() and FILETOSTR() in conjunction with the above functions. I'll be adding native file encryption/decryption and more encryption algorithms to this FLL in the coming months. The eventual goal is to provide a number of security enhancements for Visual FoxPro, this FLL is just the humble beginning of a much bigger plan. Here's the download link where you can get the vfpencryption.fll and try out the example code above.
Download the vfpencryption.fll (9 KB approx.)
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u