问题
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