开发者

Need sample C code for encrypting and decrypting files using openssl

开发者 https://www.devze.com 2023-02-04 14:45 出处:网络
Am writing code in Linux C. I need to encrypt and decrypt files using openssl. Currently Am using system command \"des3 -e -开发者_如何学Pythonnosalt -k 0123456789012345 -in inp_file -out out_file\"

Am writing code in Linux C. I need to encrypt and decrypt files using openssl. Currently Am using system command "des3 -e -开发者_如何学Pythonnosalt -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.


I would look here: http://www.openssl.org/docs/crypto/EVP_EncryptInit.html#EXAMPLES

and here: http://www.nlnetlabs.nl/downloads/publications/hsm/hsm_node17.html

0

精彩评论

暂无评论...
验证码 换一张
取 消