@@ -0,0 +1,338 @@
+from Crypto.PublicKey import RSA %0A%0Aclass RSAwrapper():%0A  %0A  def keygen(self):%0A    key = RSA.generate(2048, e=65537) %0A    public = key.publickey().exportKey(%22PEM%22) %0A    private = key.exportKey(%22PEM%22) %0A    print public%0A    print private%0A%0Aif __name__ == '__main__':%0A  try:%0A    rsa = RSAwrapper()%0A    rsa.keygen()%0A  except:%0A    print %22error%22%0A

Create RSAwrapper.py