tags:

views:

129

answers:

3

Hi, Does anyone know if C# can be used in .NET Framework 2.0 to use AES 256 encryption and decryption? Appreciate if the in-built framework supports this or if we have to use any external APIs for the same?

Thanks.

+2  A: 

It's built in - you need to use the Rijndael Class (the name of the algorithm which won the NIST AES competition) in System.Security.Cryptography.

Callum Rogers
<Pedantic> "Rijndael" is *not* the "Offical" name for AES, but the name of the algorithm from which the AES standard was created (mostly by not allowing many of the Rijndael options for key length etc..
Richard
See here for details: http://blogs.msdn.com/b/shawnfa/archive/2006/10/09/the-differences-between-rijndael-and-aes.aspx
Steve Townsend
@Richard: Lol I edited this as you wrote it. I type a quick answer first then correct it, but thanks anyway :)
Callum Rogers
@Callum: you always need to watch for race conditions, even when you don't expect them :-)
Richard
+1  A: 

Before it won the title of AES it was called Rijndael. Support for the Rijndael class has been in .Net since version 1.0.

torak
+1  A: 

Have a look at the System.Security.Cryptography namespace. It contains classes you can use for AES encryption, such as the Rijndael class.

Bernard