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 to set "personal-compress-preferences": 'ZIP' #146

Open KLoong opened 2 years ago

KLoong commented 2 years ago

I want to set "personal-compress-preferences": 'ZIP',but I don't know how to set by use this gem. crypto = GPGME::Crypto.new :armor => true crypto.encrypt JSON.generate(data),:sign=>true, :signers => "diningcity-dbs-uat@diningcity.asia", :recipients => "diningcity-dbs-prod@diningcity.asia", pinentry_mode: GPGME::PINENTRY_MODE_LOOPBACK, password:'xxxxxxx', "personal-compress-preferences": 'ZIP' I use personal-compress-preferences but it not work.

nikTC commented 2 years ago

Any luck on setting ZIP as a compression algorithm?

nikTC commented 2 years ago

Any luck on setting ZIP as a compression algorithm?

got this working like this: https://github.com/ueno/ruby-gpgme/issues/155#issuecomment-1065053882