// JP opened flex table

Click to See Complete Forum and Search --> : Help Required Regarding encrypting and decrypting a files using Microsoft APIs


luvlee_ghg
November 23rd, 2007, 12:55 PM
Hi All,

I have been trying to encrypt and decrypt files using Microsoft APIs CryptEncrypt() and CryptDecrypt(). It works fine for me when I do both encryption and decryption in same operating systems. I am trying with windows 2000 and windows 2003.
The problem arises for me when I encrypt the file in windows 2000 and and try decrypting it in windows 2003. In such scenario decryption fails with the error NTE_BAD_DATA. I have no clues on how to solve this issue. The code that I am using is same for both the operating systems. Your help is highly appreciated. Thanks in advance..

Edders
November 27th, 2007, 07:48 AM
Sorry, but you posted this to the networking forum. You may get more replies if you post your question to a more general Windows API forum?

//JP added flex table