允许对加密数字执行数学运算的加密? [英] Encryption that allows performing mathematical operations on encrypted numbers?

查看:265
本文介绍了允许对加密数字执行数学运算的加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个在线排行榜上有高分的比赛。骗子在发布之前通过改变内存中的得分来欺骗排行榜。



我认为一个解决方案是加密存储在内存中的数字,只有当分数是向用户显示。将加密的分数发送到在线排行榜。



但是我觉得这个解决方案有问题:可以对加密值进行数学运算吗?什么加密技术允许?

解决方案

你的用例的大问题是,密钥必须在内存的某个位置所以你可以加密/解密数据,所以如果一个坏的用户有足够的知识来改变内存的高分,他也不难难以找到钥匙。



但是,我可能是错误的,或者您的真实问题是如果可以对加密值执行数学操作。答案是肯定的,同态加密


Suppose I have a game with high scores posted on online leaderboards. Cheaters cheat the leaderboards by altering the score in memory before they are posted.

I think a solution would be to encrypt numbers stored in memory, and only decrypt when the scores are shown to users. Send the encrypted scores to the online leaderboards.

But I perceive a problem with this solution: Can one do math operations on encrypted values? What encryption technique allows that?

解决方案

The big problem with your use case is that the key will have to be somewhere in the memory so that you can cipher/decipher data, so if a "bad" user has enough knowledge to change the in memory high score, it shouldn't be difficult for him to also find the key.

However, I might be wrong or your "true" question is if one can perform math operation over encrypted values. The answer for that is yes, with homomorphic encryption.

这篇关于允许对加密数字执行数学运算的加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆