I want the Rijndael algorithm code to encrypt any given text for storing it in the database, I also want to know how to cancel the encryption method, that is: decrypt the encrypted text in order to use it.
An existing .NET Framework implementation already exists .
This resource has what you need:
http://www.obviex.com/samples/Encryption.aspx
Mark Brittingham. .