Frage

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

War es hilfreich?

Lösung

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).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top