hi there all, i was given a public key from our business partner to encrypt user cookies going from our web site to our partners site. i got a file that looks like this..
-----BEGIN PUBLIC KEY-----
---END PUBLIC KEY-----
obviously its a lot longer. is there a place i can put that public key into the web.congif file on my server and call it to encrypt the userID on my end before i redirect the user to our partners site? similar to using the connection string in the web.config file. i was informed by our partner that the encryption has to be base64. not sure what that means.
do i need to use DES, Triple DES or something different?
private static byte key = ?????;
private static byte IV = ?????;
private static string stringKey = "!5663a#KN";
the code above is from this site:
to summarize, i want to transfer a user from our site to our partners site storing user information in an encrypted cookie using the public key given to me by our partner. users will also be coming back to my server in which case i'll have to decrypt using the same key.
this is very urgent. any help in the right direction would be greatly appreciated!!