tl;dr: it's one of the best crypto libraries around.
rbnacl-libsodium packages the libsodium library as a Ruby Gem so you don't have to worry about installing it through system packages. It builds just like a native extension, but since RbNaCl is implemented with FFI, works on JRuby too!
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install rbnacl-libsodium
will tweak search path allowing
rbnacl to find bundled