>I am using the MS Crypto API and the FFC _crypt.vcx to encrypt and decrypt a field in a VFP table.
>
>The encrypting and decrypting of the data works fine on our production servers.
>
>However, if I FTP the table with the encrypted data to another PC and attempt to decrypt the field, the data is not decrypted correctly.
>
>Can the encrypted table be copied to another PC and decrypted? If so, how?Jerry:
I suspect you are having poblems because of the difference in OS, not PCs. For example there is a difference in the default provider in Win98 and WinXP.
This has to do with the lifitng of restrictions in US export laws, allowing to use 128-bit instead of 40-bit encryption.
Look at the Wincrypt.h include file you have and for the Microsoft Base Cryptographic Provider.
If you also look at your registry for the CryptoAPI. You will find that one of them uses the new RSA Enhanced provider (rsaenh). Make sure you use the same one in all systems, by encrypting to one common to all systems.
See:
http://fox.wikis.com/wc.dll?Wiki~CryptoAPIHTH