I have a 85mb tar.gz file. When I encrypt this using gpg the encrypted file size is 85 mb.
When trying to encrypt using Python gnupg encrypted file size is 115 mb. That is very strange since gnupg just uses sub process to gpg to send arguments. Still there is big difference in file size. Tried in Linux and win7. What might the problem be?
Python 2.7.3 on linux gnupg 0.3.6
codes below
gpg -c --cipher-algo AES256 temp.tar.gz <<< command line code.
with open(outputfolder+tarname, 'rb') as f:
status = gpg.encrypt_file(f, recipients=None, symmetric="AES256", output=outputfolder+tarname+'.gpg', passphrase='pass')