Для подключения сервера я нашел, что с помощью PHP должен использовать openssl_seal()
. Это в порядке, но я хочу использовать Python. Я не могу преобразовать openssl_seal()
в эквивалентной функции.
Можно ли помочь мне?
Это что openssl_seal()
делает:
Интервал описания openssl_seal (представляют в виде строки $data, строку и $sealed_data, массив и $env_keys, $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.