Decrypting a Cookie Against a Machine Key
Posted on 2012-03-31
I have a machine key tag in my web.config that has a validation key, a decryption key and
A third party is creating an application and will send me a cookie when the user logs into their site and clicks on the link to my website. The cookie will have username and password encrypted using the machine key located in my web.config.
I must decrypt the cookie, making sure the keys are the same then read the information in the cookie and pass it along to be authenticated by our system.
I don't know how to decrypt the cookie and am looking for help.
Anything anyone can share would be appreciated. Our framework is 3.0, so I can't use any of the decryption methods in the latest framework.