I have an MVC application and an API, I need to pass a custom credential object from the MVC app to the API for each request. I would like to encrypt the Credentials object and send that in the header of the request to the API.
How can I do that?
I have found tons of articles on how to encrypt a string but none on encrypting an object in a format other than XML.