问题描述
如何加密使用256键AES或c ++加密解密文件?
你建议哪个图书馆?
谢谢!
How can I encrypt decrypt a file with a 256 key AES in c or c++?Which library do you suggest?Thank you!
推荐答案
如果你刚刚遵循AES,不介意失去灵活性(即你不会替换然后是一个受欢迎的选择(无论对于性能和可移植性)。这是您嵌入自己的源代码中的一种代码。
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.
在外部库前面,您有很多选择,包括,, ...后者专为C ++设计,而另外两个则是意思是C。
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.
这篇关于使用C / C ++对AES进行加密解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!