logo       

[jruby-user] JRuby support for EzCrypto: msg#00196

lang.jruby.user

Subject: [jruby-user] JRuby support for EzCrypto


EzCrypto / Active Crypto is a Ruby gem providing cryptographic operations on
top of OpenSSL. I have been trying recently to use it in a Rails application
which I deployed on Tomcat through JRuby / Goldspike. There seems to be quite
a bit of differences between the behavior of C OpenSSL and JRuby-OpenSSL that
EzCrypto has tons of problems working within JRuby. Some specific examples are:

** lack of method 'umask' in File:Class (to tighten permissions on key files)
** possible unsupported cipher algorithm (aes128/ECB/PKCS5Padding)
** different expected invocation arguments (for example, required
Initialization Vector in a certain cipher in Java while the same is not
required in C OpenSSL)


Is this observation on par with what others are experiencing?

Does anyone has recommendations on a good way to do cryptography that would
work on both JRuby and CRuby transparently? (my development are done on CRuby
but deployed to JRuby on production...)


Env: Fedora 8 / JDK 1.6.0_03 / JRuby 1.0.2 / JRuby-OpenSSL 0.0.4 / EzCrypto
0.7 / Ruby 1.8.6


Cheers,
Chiaming Hsu





---------------------------------------------------------------------
To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise