Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将 RSA 公钥文件加载到 python 中的 pyCrypto publickey 对象中?
RSA 类为此有一个importKey方法:
importKey(externKey) 导入 RSA 密钥(公共或私有一半)。 externKey:要导入的 RSA 密钥,编码为字符串。密钥可以是 DER (PKCS#1) 或未加密的 PEM 格式 (RFC1421)。
importKey(externKey) 导入 RSA 密钥(公共或私有一半)。
externKey:要导入的 RSA 密钥,编码为字符串。密钥可以是 DER (PKCS#1) 或未加密的 PEM 格式 (RFC1421)。