同态加密 bootstrapping自举算法

同态加密是一种基于数学困难问题的计算复杂性密码学技术,对于经过同态加密的数据进行运算得到的结果与用相同方法处理未经加密的数据得到的结果一致。In other words, first calculation and then decryption are equivalent to first decryption and then calculation.
Homomorphic encryption methods provide a way to out-source computations to the cloud while protecting the confidentiality of the data

RSA体系就存在乘法同态性质

Palilier

Paillier算法(复合剩余类的困难问题Composite Residuosity Class Problem)是加法同态的,密文相乘等于明文相加。
在这里插入图片描述
在这里插入图片描述
Paillier scheme consists of a fixed basis modular exponentiation with the message as exponent, and the
generation of a noise factor(r) used to mask the message

测试

from phe import paillier
#key generate
public_key, private_key <
  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

GoldMinnie

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值