I am trying to implement the VFPEncryption from Craig Boyd and have run into some problems. I am trying to encrypt credit card data and bank account data for my customer database.
It seems that every so often i get an error message when I call the decrypt function. The error message says that the "API call caused an exception. - (0)"
This happens very randomly on my data (99% is correct), but it will be very consistent on the 1 % that is wrong. If I encrypt my data again using a different key, the error will occur on a different record. I have tried padding my data to the length of the key, but that has not helped. I have tried various encryption modes and types, but that has not changed anything either.
I am also using STRCONV() to code/encode the data to base64 binary to overcome the problem with CHR(0) in the data.
Any suggestions would be appreciated!
Thanks!
Carsten Thode
Carsten M. Thode