ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
232 stars 99 forks source link

How do I set compression method as a ZIP by default? #155

Closed nikTC closed 2 years ago

nikTC commented 2 years ago

Hello, I'm trying to generate a encrypted message for my service provider: where they are able to verify signature but unable to decrypt message payload as the default compression method is set by GPGME is ZLIB and they need it to be ZIP. please help.

nikTC commented 2 years ago

Sorted this with by directly using systems gpg engine

system("gpg --armor --sign --recipient #{my_recipient} --output output-file-path --compression-algo zip --always-trust --encrypt path-to-input-data-file")

please share /add how do we achieve the above implementation via this gem