Hi,

I have a VB6 application that should encrypt a string using a public key and a C# application decrypt using a private key.

Following situation. I created a Certificate containing a public and a private key. in my certstore and exported the keys to files ( .pfx,.cer )

so basicly i have the methods in vb to decrypt a string but only with .prk and .pbk files but i cant find a way to get the keys stored in the .pfx file out to use them with my crypto api calls.

So im pretty new to all this crypto stuff and maybe im doing something completley wrong here... so just forgive me if im talking bs here

thanks in advance
as