Solved

AES algorithm

Posted on 2013-01-29
3
270 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
3 Comments
 
LVL 51

Expert Comment

by:tedbilly
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 500 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now