C ++ AES加密类 [英] C++ AES Encryption Class

查看:191
本文介绍了C ++ AES加密类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的C ++项目需要AES加密。但是我没有时间研究更加流行和复杂的c ++加密库。你知道任何已经准备好的开源C ++类实现AES(Rijndael)吗?



提供类似于

  void makekey(....); 
字符串加密(字符串数据); //采用纯文本,返回加密文本
string decrypt(string data); //加密文本,返回纯文本

我已经看到这个实施AES,我试图根据我的需要量身定做,但是我不想重塑轮子(我遇到问题)。所以如果你知道这样的类,请让我知道。

我推荐 Crypto ++ ,一个非常易于使用的C ++库。它适用于不同的操作系统,如Windows和Linux。不要重新发明轮子!


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.

解决方案

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!

这篇关于C ++ AES加密类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆