【发布时间】:2009-12-08 15:36:34
【问题描述】:
我正在使用 ruby gpgme gem (1.0.8)。我的密码回调没有被调用:
def passfunc(*args)
fd = args.last
io = IO.for_fd(fd, 'w')
io.puts "mypassphrase"
io.flush
end
opts = {
:passphrase_callback => method(:passfunc)
}
GPGME.decrypt(input,output, opts)
有人有密码回调的工作示例吗?
【问题讨论】: