views:

106

answers:

3

I want the code of Rijndael algorithm to encrypt any given text to store it in a database, I also want to know how to reverse the encryption method, ie: decrypt the encrypted text to use it.

+5  A: 

There's an existing .NET Framework implementation already.

Alex
+1 Why reinvent the wheel? (unless the goal itself is to do it yourself exercise)
Hemant
@Alex: does this work on WPF?
sikas
Yes. You can use the implementation in any application that can use .NET framework libraries (Websites, console, windows forms, wpf, silverlight etc)
Hemant
+3  A: 

This resource has what you need:

http://www.obviex.com/samples/Encryption.aspx

Anax
@Anax: does this work on WPF?
sikas
A: 

You should take a look at this great solution by Mark Brittingham. This class both includes encryption and decryption methods.

sshow