0
votes

I need to decrypt a AES-256-EAX encrypted string from Java in Ruby. Ruby's built-in OpenSSL::Cipher provides functionality to decrypt AES-256-CBC, when I try to use AES-256-EAX, its throwing that the algorithm is not supported.

Is there any library/gem out there that decrypts AES-256-EAX string in Ruby?

Thanks in advance.

2
Any reason why you can't use CBC on the Java end? And please, encryption is different from encoding.NullUserException
Java end is not controlled by me. If I can't find the Ruby implementation for EAX, then my last resort would be to inform the Java end that we (Ruby end) can only support AES-256-CBC.Dharam Gollapudi

2 Answers

0
votes

Are you sure that you got the right cipher string ? Googling for "AES-256-EAX" does yield only 8 hits for me and I've never heard of it before. And if OpenSSL doesn't support it you are out if luck, I guess.

0
votes

Is it possible for you to run your ruby code with jruby ? In this case you could use the java lib inside ruby code to decrypt your string.