?
Solved

AES algorithm

Posted on 2013-01-29
3
Medium Priority
?
278 Views
Last Modified: 2013-02-15
How will i use AES algorithm in C# to encrypt and decrypt a string
0
Comment
Question by:Aspnet_9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 38833437
Use System.Security.Cryptography.RijndaelManaged  If you want examples, search MSDN
0
 
LVL 20

Expert Comment

by:edster9999
ID: 38833442
First step - do not try to code it yourself.

This has already been done many times, in many libraries.  If you do not understand the finer points of encryption, salting values, keys etc then you will make mistakes and end up with very easy to crack encryption.

Google it and reuse code that already exists and is published :

https://www.google.com/search?q=c%23+aes+encryption
0
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 1000 total points
ID: 38847844
There is a complete example to encrypt/decrypt a string with AES at MSDN:
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rijndaelmanaged%28v=VS.90%29.aspx
That will encryt to/from bytes. If you want to encrypt to another string, then try with:
http://www.overset.com/2008/04/17/simple-aes-rijndael-c-encrypt--decrypt-functions/
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question