RSA support in Ruby?

Hi,

We鈥檙e using Ruby 1.8.1 and would like to use RSA to encrypt data using a
public key from our mod_ruby scripts.

But it seems that openssl.rb included with Ruby does not support RSA yet.

We need this feature in our production environment by next week :frowning:

What are my options (other than using Perl)?

Are you sure ?
the ruby-doc.org RDoc pages shows that a class cRSA exist, isn鈥檛 that
what you need ?

路路路

il Wed, 26 May 2004 17:53:20 GMT, Randy Lawrence jm@zzzzzzzzzzzz.com ha scritto::

Hi,

We鈥檙e using Ruby 1.8.1 and would like to use RSA to encrypt data using a
public key from our mod_ruby scripts.

But it seems that openssl.rb included with Ruby does not support RSA yet.

gabriele renzi wrote:

路路路

il Wed, 26 May 2004 17:53:20 GMT, Randy Lawrence jm@zzzzzzzzzzzz.com > ha scritto::

Hi,

We鈥檙e using Ruby 1.8.1 and would like to use RSA to encrypt data using a
public key from our mod_ruby scripts.

But it seems that openssl.rb included with Ruby does not support RSA yet.

Are you sure ?
the ruby-doc.org RDoc pages shows that a class cRSA exist, isn鈥檛 that
what you need ?

Thanks! I checked it out after seeing your response.

Unfortunately, the example code snippet doesn鈥檛 work for cRSA and
there鈥檚 virtually no documentation. I鈥檓 new at Ruby so maybe I鈥檓 doing
something wrong.

If you know of a working example, please let me know.

Thanks again.