Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

AES algorithm

Posted on 2013-01-29
3
Medium Priority
?
280 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

610 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