开发者

Decrypt AES-256-EAX encrypted string in Ruby?

开发者 https://www.devze.com 2023-01-13 23:31 出处:网络
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 th

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 AE开发者_运维问答S-256-EAX string in Ruby?

Thanks in advance.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消