keys and openssl

J

Jamis Buck

I may be barking up the wrong tree altogether, but I'm trying to
generate a public and private key, optionally protected by a passphrase,
and use them to encrypt and decrypt a database password. Has anyone done
this in Ruby with OpenSSL? If so, would you mind gving me a few tips?

I've tried several things with no luck. The OpenSSL library for Ruby is
impressive, but poorly documented. :( Any pointers would be appreciated.

--
Jamis Buck
(e-mail address removed)
http://www.jamisbuck.org/jamis

ruby -h | ruby -e
'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a <<
r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

openssl ciphers 6
OpenSSL: patch 23
Gnome2 panel applets? 4
OpenSSL and Key Passphrases 2
Net::SSH update 7
Net::SSH? 0
[ANN] SQLite/Ruby 1.1.1 0
Working with openssl and files 2

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top