locked
Encrypting Data on Vista using CNG API RRS feed

  • Question

  • Hi All,

     

    I am developing an application to encrypt data using the Private Key present in IE Key Store. My target palteform is Windows Vista. I have looked at the sample present in the MSDN at:

    http://msdn.microsoft.com/en-us/library/aa376234(VS.85).aspx

     

    This sample encrypts and decrypts the data using CNG APIs. This sample generates a symmetric key and uses it to Encrypt the Data, and then also shows how to decrypt the data using that symmetric key.

     

    I want to encrypt and decrypt the data using the Asymmetric Key, i.e. Key present in the Personal Key Store. Can some one please help me, how can i acheive this using CNG APIs. A sample code will be highly appreciated.

     

    Thanking in advance.

     

    Regards,

    Ghazanfar

    Monday, October 20, 2008 9:47 AM

All replies

  • You can download CNG SDK from http://www.microsoft.com/downloads/details.aspx?familyid=1ef399e9-b018-49db-a98b-0ced7cb8ff6f&displaylang=en. There are what you want.

    Thanks.
    Rain

    Tuesday, June 8, 2010 10:20 AM