Ruby推荐的双向加密宝石? [英] Recommended two-way encryption gems for Ruby?

查看:169
本文介绍了Ruby推荐的双向加密宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个Ruby的双向加密解决方案,比如Blowfish,Rijndael(AES)等。然而,问题是我找不到合适的宝石。我想要图书馆支持几种不同的加密算法,所以我可以比较每个的性能,以实现我的应用程序的最佳集成。我也希望它是开源的。

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.

我发现了 Crypt ,但它没有正确安装,并不像它在一段时间内被更新。 EzCrypto 也不会安装。我也看到 ruby​​-aes ,但只支持Rijndael。

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.

在一些GitHub搜索之后,我发现加密器,这似乎是一样的东西我在找。但是,我很想得到关于我可能错过的任何宝石/图书馆的一些想法。

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.

提前感谢

推荐答案

我建议 Shuber的加密器 - 它包装OpenSSL库,因此您可以使用它支持的任何东西。

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

这篇关于Ruby推荐的双向加密宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆