Geetha
Geetha

Reputation: 199

Rijndael algorithm

I want to work on the Rijndael algorithm using C#. Can anybody help me with this please?

Upvotes: 2

Views: 2233

Answers (4)

Biju
Biju

Reputation: 1

I am looking into the same that as per brian. But the problem here is that all the rijndael samples available in the net are mostly using a Text File but is there any way of doing it in a Online Mode where when i get the data in the text box i convert it and put directly in to the database.

Any Hints on this would be much better and all the samples are defining the key from the Rijndael class itself, can't we provide the Key of our own.

cheers Biju

Upvotes: 0

Luka Rahne
Luka Rahne

Reputation: 10447

sorry guys, but I just can not resist

from http://www.moserware.com/2009/09/stick-figure-guide-to-advanced.html alt text

Upvotes: 9

Marc Gravell
Marc Gravell

Reputation: 1062502

I'm assuming you mean the Rijndael encryption algorithm - in which case RinjdaelManaged would be of use. The MSDN documentation (previous link) has examples, or there are lots of other references, for example see here.

I see (comments to other reply) that you are looking at implementing this yourself... some thoughts:

  • don't
  • why?
  • don't

Unless this is purely for interest, stick to the existing implementation. It will eat time, and potentially introduce security weaknesses. I can't think of a good reason to rewrite this.

Upvotes: 9

Brian Gianforcaro
Brian Gianforcaro

Reputation: 27180

If you just need a working implementation check out the Rijndael Documentation on MSDN. The Rijndael implementation looks pretty convenient to interface with.

It's of course a different story if you are trying implement it yourself.

Upvotes: 0

Related Questions