encrypt- decrypt with AES using C/C++

前端 未结 2 1115
野趣味
野趣味 2020-12-08 07:50

How can I encrypt and decrypt a file with a 256 key AES in C or C++?

2条回答
  •  轮回少年
    2020-12-08 08:02

    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.

提交回复
热议问题