Search code examples
rubyopen-sourceencryption

Recommended two-way encryption gems for Ruby?


I'm in need of a two-way encryption solution for Ruby, such as Blowfish, Rijndael (AES) or other. The problem, however, is that I can't find an appropriate gem for it. I would like for the library to support several different encryption algorithms so I can compare the performance of each for optimal integration i my application. I would also like it to be open source.

I came across Crypt, but it doesn't install properly and doesn't look like it's been updated in a while. EzCrypto won't install, either. I also saw ruby-aes, but that only supports Rijndael.

After some GitHub searching, I found Encryptor, which seems to be something like what I'm looking for. However, I'd love to get some ideas about any gems/libraries I might have missed.

Thanks in advance!


Solution

  • I'd recommend Shuber's Encryptor - it wraps the OpenSSL library so you can use anything it supports.