Anyway, I'm noticing the ruby gem OpenPGP for ruby, and I'd like to experiment with it, just to do a little IRC hello world type of string encryption app, but I'm not sure exactly where to go to learn how to use that gem.
What's the first thing you do to learn how to use something like OpenPGP for ruby? The only information I can find is at its git repo https://github.com/bendiken/openpgp
It looks like there's a chance it's a little bugged too, because all I can get this code to do is hang on the last line:
require 'rubygems'
require 'openpgp'
gpg = OpenPGP::Engine::GnuPG.new(:homedir => '~/.gnupg')
key_id = gpg.gen_key({
:key_type => 'RSA',
:key_length => 256,
:subkey_type => 'ELG-E',
:subkey_length => 256,
:name => 'J. Random Hacker',
:comment => nil,
:email => 'jhacker@example.org',
:passphrase => 'secret passphrase',
})
I'm on ruby 1.9.2 on a Debian system.

New Topic/Question
Reply




MultiQuote







|