Encrypting and decrypting a small file using openssl

后端 未结 3 1665
遥遥无期
遥遥无期 2020-12-02 13:48

I want to write a small program in C/C++ which reads a small text file, and encrypts it, using a \"internal\" key. Then I also want to write another small program which can

3条回答
  •  离开以前
    2020-12-02 14:04

    OpenSSL is specifically concerned with implementing SSL and TLS which are protocols for encrypting data over a network. Since you are just looking to encrypt a file, it is possible to use OpenSSL but not ideal.

    Instead, I would use something like BeeCrypt or Crypto++® Library 5.6.0 which both provide examples for their use.

提交回复
热议问题