title: How do I encrypt/decrypt a binary file of arbitrary length using python?
body: <p>I'm curious as to how I can encrypt and decrypt binary files using python.  I looked at the pycrypto library and some of the block ciphers seem to need the file length to be a multiple of 8/16/etc -- not sure how to handle this when dealing with files of arbitrary length (possibly misaligned).  I considered shelling out to GPG but if I can do this in python that would be great.</p>
  
  <p>Thanks in advance.</p>