• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 286
  • Last Modified:

AES algorithm

How will i use AES algorithm in C# to encrypt and decrypt a string
1 Solution
Ted BouskillSenior Software DeveloperCommented:
Use System.Security.Cryptography.RijndaelManaged  If you want examples, search MSDN
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 :

Jaime OlivaresSoftware ArchitectCommented:
There is a complete example to encrypt/decrypt a string with AES at MSDN:
That will encryt to/from bytes. If you want to encrypt to another string, then try with:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now