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