views:

841

answers:

3

Hi! How can I encrypt decrypt a file with a 256 key AES in c or c++? Which library do you suggest? Thank you!

+1  A: 

Check out libcrypto. You can find an example of it here.

SB
+1  A: 

If you are just after AES and do not mind losing flexibility (i.e. you will not replace it with another cryptographic algorithm at some time) then Brian Gladman's AES implementation is a popular choice (both for performance and portability). This is the kind of code which you embed in your own source code.

On the external libraries front, you have plenty of choice, including NSS, OpenSSL, Crypto++... the latter is specifically designed for C++, while the two others are meant for C.

Thomas Pornin
are there any examples of crypto++ with aes?
iassael
A: 

hi,I am a chinese girl,I am looking for a program of AES with C++ now.I'm from chengdu,,,why I said so much? I don't know,the homework lets me crary,I think mabey I just need a rest .I think you can find some books about C or C++,them will be good to you. My english is so poor,you know what I say?good luck for us!my QQ number is 916008908 ,mabey you can help me provide my english,thanks.

serena