Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

high-level ruby library for encryption

It seems like the most established ones like keyczar, cryptlib and NaCl are not available for Ruby. What are some ruby libraries (or bindings) for a high-level library where decisions about cryptographic primitives have been made for you (no need to generate IVs, CBC vs EBC etc.). I did find ruby-gpgme. There's also libmcrypt which has support for symmetric encryption of streams which is what I am ultimately interested in.

like image 777
m33lky Avatar asked Mar 10 '12 06:03

m33lky


2 Answers

NaCl is now (1.0.0 of the gem was published some days ago) available for Ruby through RbNaCl (which uses libsodium, "portable, cross-compilable, installable, packageable, API-compatible version of NaCl"). There is also krypt.

like image 154
dentarg Avatar answered Nov 13 '22 09:11

dentarg


Why not OpenSSL?

It is part of the standard libary:

http://ruby-doc.org/stdlib-1.9.3/libdoc/openssl/rdoc/index.html

like image 22
kwarrick Avatar answered Nov 13 '22 08:11

kwarrick