简体   繁体   中英

Need sample C code for encrypting and decrypting files using openssl

Am writing code in Linux C. I need to encrypt and decrypt files using openssl. Currently Am using system command "des3 -e -nosalt -k 0123456789012345 -in inp_file -out out_file" for encrypting and "des3 -d -nosalt -k 0123456789012345 -in inp_file -out out_file" for decrypting. Where shall I get sample code to do the same with C API's.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM