Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

alternate method for openssl_public_encrypt in C#

$
0
0

I am completely new to encryption and C#. I have public.key file which contain public key. using php i can use the key to encrypt the data and send to thirdparty.

$publicKey = openssl_pkey_get_public('public.key'); //open public key file

//encryot the data

if (!openssl_public_encrypt($plaintect, $encryptdata, $publicKey))

$encrypted = base64_encode($encryptdata);

I used libraries from http://openssl-net.sourceforge.net/ but I cannot find anything similar to php above

any help would ne really appreciated

thank you


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>