Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Testing for Encrypted Data
Message
From
07/08/2004 20:32:56
 
 
To
07/08/2004 12:57:44
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00931548
Message ID:
00931595
Views:
19
>I want to use the _crypt.vcx to protect credit card numbers, social security numbers, etc. in an application that we distribute. We have and installed base of about 350 sites and have a routine that "audits" the users files and brings them up to date for the current version, no matter what their prior version is. My question is: I need to check certain fields in a dbf file and see if the data has been encrypted or not. If it is already encrypted, then I don't need to run the procedure to encrypt it. Is there a simple test that will return true or false depending on if the data is encrypted or not?

I don't know your data but I would assume it is made of readable characters (as opposed to gibberish -low or high ASCII). So you could read a few characters and if you find many outside the readable range (say ASCII 32 to 122) then that's what you have.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform