Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Libraries to encrypt/decrypt using AES

I couldn't find aes libraries in .net framework. Is there any external libraries?

thanks

like image 861
Nabo Avatar asked Jun 08 '10 01:06

Nabo


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is C in C language?

What is C? C is a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system.

Is C language easy?

Compared to other languages—like Java, PHP, or C#—C is a relatively simple language to learn for anyone just starting to learn computer programming because of its limited number of keywords.

What is C full form?

Full form of C is “COMPILE”. One thing which was missing in C language was further added to C++ that is 'the concept of CLASSES'.


2 Answers

You do not mention which version of the framework you are using, but since you did not immediately find System.Security.Cryptography.AesManaged, I guess you are using a version earlier than 3.5.

Instead use System.Security.Cryptography.RijndaelManaged. Rijndael is the name of the algorithm that was standardized by NIST as AES. It is exactly the same algorithm (except that you can choose some blocklengths and modes with Rijndael that are not permitted with AES).

like image 79
Rasmus Faber Avatar answered Oct 16 '22 06:10

Rasmus Faber


You'll find AES built into the framework in the System.Security.Cryptography namespace:

http://msdn.microsoft.com/en-us/library/system.security.cryptography.aes.aspx

like image 29
Paul Kearney - pk Avatar answered Oct 16 '22 05:10

Paul Kearney - pk