Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

How to Encrypt and Decrypt the data in C#.net using the AES 256 Key type and need to store in database.

I need to use this in Windows Services with c#.net.


Thanks in advance
Guru
Posted

hi gurusha,
check this link on how to crypt and decrypt using AES:
http://msdn.microsoft.com/fr-fr/library/system.security.cryptography.aes(v=vs.110).aspx[^]


since you are going to use a database, i recommend using an ORM such as Entity FrameWork

Hope it helps.
 
Share this answer
 
v2
You can find .dlls that include these algorithms. You could probably find them in the nuget repository. Type nuget on Google and then something like AES.
 
Share this answer
 
Use the System.Security.Cryptography.AesCryptoServiceProvider class.

Here is the link to the MSDN web page that presents it and gives an example of its use:
AesCryptoServiceProvider Class[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900