使用openssl在c中解密数据

时间:2011-11-25 12:45:52

标签: c openssl

在php中我使用以下功能:

openssl_get_privatekeyopenssl_private_decrypt解密一些数据。

$privatekey = openssl_get_privatekey (file_get_contents("private.key"));
openssl_private_decrypt($encrypted_data,$decrypted_data, $privatekey);

我怎样才能在c中做同样的事情?

欢迎提供一些建议或例子。

佩里

1 个答案:

答案 0 :(得分:0)

也许this quick demo可以帮到你

还有一些教程可以为您提供更多见解:

Overview of the API
Secure handshake
Providing a secure service