Open enizbilgin opened 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)
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)