When you say that OpenSSL in Ruby only give you one way of using RSA PKE - are you referring to available encryption ciphers? Have a look at http://ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/OpenSSL/Cipher.html for the docs there, there are a whole bunch of cipher options, many should line up to something used by BouncyCastle on the Java side.
On Thursday, June 14, 2012 at 3:31 PM, Guyren Howe wrote: > I am trying to encrypt a string using a public key on Android (phone gap in > particular) and decrypt it in Rails. > > I tried a Javascript RSA library which worked, except that it occasionally > failed to encrypt correctly. > > Trying to use BouncyCastle through Java, but can’t work out how to do the > encryption so Rails can read it. It seems that the OpenSSL wrapper in Ruby > only gives you one way of using RSA PKE and I can’t make my Java options > match up. > > Does anyone have any wisdom for this situation? > > -- > SD Ruby mailing list > [email protected] (mailto:[email protected]) > http://groups.google.com/group/sdruby > > -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
