title: How to do PGP in Python (generate keys, encrypt/decrypt)
body: <p>I'm making a program in Python to be distributed to windows users via an installer.</p>
  
  <p>The program needs to be able to download a file every day encrypted with the user's public key and then decrypt it.</p>
  
  <p>So I need to find a Python library that will let me generate public and private PGP keys, and also decrypt files encrypted with the public key.</p>
  
  <p>Is this something pyCrypto will do (documentation is nebulous)?  Are there other pure Python libraries?  How about a standalone command line tool in any language?</p>
  
  <p>All I saw so far was GNUPG but installing that on Windows does stuff to the registry and throws dll's everywhere, and then I have to worry about whether the user already has this installed, how to backup their existing keyrings, etc.  I'd rather just have a python library or command line tool and mange the keys myself.</p>
  
  <p>Update: pyME might work but it doesn't seem to be compatible with Python 2.4 which I have to use.</p>