I have a public key that looks like this:
BgIAAACkAABSU0ExAAQAAAEAAQCH3cm40A7P6GzlRrDMC1hEgB9kwPYLCei0z/NxnEwzj/brpcmhMXoebyW7GLoAgNaVigi5/+UMbuXwva9e6WpAZu+45a+wAuBJGetnlhfhgGWs8WpaE6qYpB94m3UUWdAB5rwSvC4gxHzHcGCk5M3ilNxA5Hk3jcXcvwzum+fHqg==
How do I encrypt a string with that key using Python?
I have been trying varyations on this:
from Crypto.PublicKey import RSA
rsakey = RSA.importKey(key)
But I keep getting the error ValueError: RSA key format is not supported