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.
Rijndal Algorithm using C#
Asked Answered
There's an existing .NET Framework implementation already.
+1 Why reinvent the wheel? (unless the goal itself is to do it yourself exercise) –
Varden
Yes. You can use the implementation in any application that can use .NET framework libraries (Websites, console, windows forms, wpf, silverlight etc) –
Varden
This resource has what you need:
You should take a look at this great solution by Mark Brittingham. This class both includes encryption and decryption methods.
© 2022 - 2024 — McMap. All rights reserved.