Google AppEngine目前使用old version of PyCrypto。在AppEngine上打印/導出公鑰PyCrypto
做出一個RSAkey後,我找不到任何方式來導出公鑰。
唉文檔的pycrypto 2.01目前404而.EXPORT方法我在當前的代碼見不上PyCrypto 2.01工作:
使得密鑰對:
rsa_key = RSA.generate(384, random_generator)
檢查方法可供選擇:
In [84]: rsa_key.publickey. <tab>
RSAkey.publickey.__call__ RSAkey.publickey.__func__ RSAkey.publickey.__reduce__ RSAkey.publickey.__str__
RSAkey.publickey.__class__ RSAkey.publickey.__get__ RSAkey.publickey.__reduce_ex__ RSAkey.publickey.__subclasshook__
RSAkey.publickey.__cmp__ RSAkey.publickey.__getattribute__ RSAkey.publickey.__repr__ RSAkey.publickey.im_class
RSAkey.publickey.__delattr__ RSAkey.publickey.__hash__ RSAkey.publickey.__self__ RSAkey.publickey.im_func
RSAkey.publickey.__doc__ RSAkey.publickey.__init__ RSAkey.publickey.__setattr__ RSAkey.publickey.im_self
RSAkey.publickey.__format__ RSAkey.publickey.__new__ RSAkey.publickey.__sizeof__
打印不起作用。
[在谷歌App Engine的驗證數字簽名]的可能重複(http://stackoverflow.com/questions/8516277/verifying-digital-signature-on-google-app-engine) – mikemaccana 2012-01-27 15:18:56