需要样本C代码以使用openssl加密和解密文件 [英] Need sample C code for encrypting and decrypting files using openssl

查看:225
本文介绍了需要样本C代码以使用openssl加密和解密文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Linux C中编写代码.我需要使用以下代码加密和解密文件 openssl.当前,我使用系统命令"des3 -e -nosalt -k 0123456789012345 -in inp_file -out out_file"进行加密,并使用"des3 -d -nosalt -k 0123456789012345 -in inp_file -out out_file"进行解密.在哪里可以获取与C API相同的示例代码.

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.

推荐答案

我会在这里查看:和此处: http://www.nlnetlabs.nl/downloads/publications/hsm/hsm_node17.html

这篇关于需要样本C代码以使用openssl加密和解密文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆