RSA python publickey using pyCrypto

可紊 提交于 2019-12-11 07:18:56

问题


How to load a RSA public key file into a pyCrypto publickey object in python?


回答1:


The RSA Class has an importKey method for this:

importKey(externKey) Import an RSA key (public or private half).

externKey: the RSA key to import, encoded as a string. The key can be in DER (PKCS#1) or in unencrypted PEM format (RFC1421).



来源:https://stackoverflow.com/questions/6011666/rsa-python-publickey-using-pycrypto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!