C++ AES Encryption Class [closed]

房东的猫 提交于 2019-12-04 08:25:16

问题


I need AES encryption for my C++ project. But i don't have the time to study the more popular and complex c++ cryptography libraries. Do you know of any ready made, open source C++ class that implements AES(Rijndael)?

something that provides something like

void makekey(....);
string encrypt(string data); //takes plain text, returns encrypted text
string decrypt(string data); //takes encrypted text, returns plain text

I have already seen this implementation of AES and am trying to tailor it to my needs but I don't want to reinvent the wheel (and I'm having problems with it). so if you know of such class please let me know.


回答1:


I recommend Crypto++, a really easy to use C++ library. It works in different operating systems like Windows and Linux. Don't reinvent the wheel!

Usage samples can be found here.



来源:https://stackoverflow.com/questions/12151178/c-aes-encryption-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!