tags:

views:

31

answers:

0

Hi,

to connect a server i've found that using PHP i've to use openssl_seal. That's ok, but i want to use Python. But i'm not able to convert "Openssl_seal" in an equivalent function. can you help me?

this is what Openssl_seal do:

Description
int openssl_seal ( string $data , string &$sealed_data , array &$env_keys ,
                   array $pub_key_ids )

openssl_seal() seals (encrypts) data by using RC4 with a randomly generated
secret key. The key is encrypted with each of the public keys associated
with the identifiers in pub_key_ids and each encrypted key is returned in
env_keys. This means that one can send sealed data to multiple recipients
(provided one has obtained their public keys). Each recipient must receive
both the sealed data and the envelope key that was encrypted with the
recipient's public key.

thank you very much!!