and this might break certain file formats another idea for extending the project is to encrypt length field at the beginning of the blog post contents that tells you the original size of the document before you padded it you can then read in this length after decrypting the blog post contents and trim the file to that exact size [ the python package pycrypto can be installed from