Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crypto API question
Message
De
14/09/2004 12:07:36
 
 
À
14/09/2004 10:16:04
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00941894
Message ID:
00941944
Vues:
17
>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~CryptoAPI


HTH


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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform