ueno / ruby-gpgme

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

wrong argument type Hash (expected Data) (TypeError) #136

Open enizbilgin opened 4 years ago

enizbilgin commented 4 years ago

When we pass the options in the decryption process, the following error occurs.

options = { :passphrase_callback => PassphraseCallback.new("test") } cipthertext = GPGME::Data.new(File.open(file_path)) data = ctx.decrypt cipthertext, options

ctx.rb:426:in `gpgme_op_decrypt': [!] wrong argument type Hash (expected Data) (TypeError)