LopDev
LopDev

Reputation: 839

How could I encrypt some parameters with Rijndael algorithm?

I want to encrypt the following parameters:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope>
   <soap:Body>
      <user>User</user>
      <pass>Pass</pass>
   </soap:Body>
</soap:Envelope>

The ideal final XML document would be something like this:
(The values are random letters with no meaning just to show you what I want to do)

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope>
   <soap:Body>
      <user>gsdfhnsafjjetjte</user>
      <pass>herahrejhtjhsteajt</pass>
   </soap:Body>
</soap:Envelope>

IMPORTANT
I must use as a Rijndael Key a token from an Ouath 2.0 API. How can I use this and where in the Rijndael code?

EDIT For example: I have to encrypt with Rijndael the below parameters in the method:

APISoapClient soapClient = new APISoapClient ();

string id = "callID";
string username = "user";
string password = "pass";
string data = "someData";

string test = soapClient.getInfo(id, username, password , data);

Could anyone provide me with a sample of code which encrypts the above using the Rijndael algorithm?

Upvotes: 0

Views: 137

Answers (0)

Related Questions