Disable Compression when Encrypting with GNU GPG

Posted on August 17, 2018 at 10:08 pm

By default GPG uses RFC1950 compression when encrypting a file.

Use “–compress-algo none” to disable compression on GPG:

/usr/bin/gpg --trust-model always --encrypt --compress-algo none --recipient 'YOUR KEY NAME HERE' file.tar

To run the command in background use:

nohup /usr/bin/gpg --trust-model always --encrypt --compress-algo none --recipient 'YOUR KEY NAME HERE' file.tar > /dev/null 2>&1 &

Receive updates via email

Other Posts

Updated Posts