You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a distributed scenario where one end needs to use C++ to call HEU for encryption and serialization, while the other end needs to use Python to call HEU for decryption. The two ends collaborate through an MQ queue to complete the computation.
I would like to know if there is an existing example in the current project for this use case, or could you please provide guidance on how to achieve this functionality with HEU? Thank you very much!
// Create the HeKit with the desired schema type
SchemaType schema = SchemaType::Paillier;
HeKit he_kit(schema);
// Obtain the PlainEncoder from HeKit and encode your cleartext
PlainEncoder edr = he_kit.GetEncoder<PlainEncoder>(1);
Plaintext pt = edr.Encode(100);
// Obtain the Encryptor from HeKit and encrypt your plaintext
auto encryptor = he_kit->GetEncryptor();
auto ct = encryptor->Encrypt(pt);
// Serialize the ciphertext
auto buffer = ct.Serialize();
Feature Request Type
Language binding
Describe the context
Hello,
I have a distributed scenario where one end needs to use C++ to call HEU for encryption and serialization, while the other end needs to use Python to call HEU for decryption. The two ends collaborate through an MQ queue to complete the computation.
I would like to know if there is an existing example in the current project for this use case, or could you please provide guidance on how to achieve this functionality with HEU? Thank you very much!
您好,我有一个分布式的场景,一端需要C++调用HEU完成加密并序列化,另一端需要Python调用HEU完成解密,两端通过MQ队列协作完成运算。
请问,当前的项目有没有这样的示范,或者怎么使用HEU完成这一功能,还请指点一下,多谢!
The text was updated successfully, but these errors were encountered: