Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用于加密项目的Python纸牌游戏_Python_Cryptography_Pycrypto_Elgamal - Fatal编程技术网

用于加密项目的Python纸牌游戏

用于加密项目的Python纸牌游戏,python,cryptography,pycrypto,elgamal,Python,Cryptography,Pycrypto,Elgamal,我正在从事一个加密项目,我想使用python中的“心理扑克”概念创建一个简单的双人高牌游戏。 例如,概念的一部分是: 每个游戏者产生一个ri(像一个键),然后计算E(ri)(其中E()是ElGamal函数) 那么,有没有一种方法可以导入一个库并键入E(ri)来计算结果,或者我必须编写自己的ElGamal函数呢?这里专门实现了ElGamal加密

我正在从事一个加密项目,我想使用python中的“心理扑克”概念创建一个简单的双人高牌游戏。 例如,概念的一部分是:
每个游戏者产生一个ri(像一个键),然后计算E(ri)(其中E()是ElGamal函数)


那么,有没有一种方法可以导入一个库并键入E(ri)来计算结果,或者我必须编写自己的ElGamal函数呢?

这里专门实现了ElGamal加密