Forum: Ruby RbNaCl 3.0.0: a modern cryptography library for Ruby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4131d2f57a0db2a2b4d9a62bd389fd44?d=identicon&s=25 Tony Arcieri (Guest)
on 2014-04-24 00:22
(Received via mailing list)
Sidebar: Check out my talk Being Boring - A Survivor's Guide to Ruby
Cryptography (describes RbNaCl):

RbNaCl is a Ruby FFI binding to the Networking and Cryptography Library
Dan Bernstein and his collaborators:

Version 3.0 includes a new "SimpleBox" API designed to be the most
straightforward API for cryptography possible. It automatically uses a
random nonce per message (using libsodium's randombytes implementation
which pulls from /dev/urandom on *IX and CryptGenRandom on Windows).
Simplebox is usable for both public-key and secret-key cryptography:

Full list of changes from 2.0 below:

* Rename RandomNonceBox to SimpleBox (backwards compatibility preserved)
* Reverse documented order of SimpleBox/RandomNonceBox initialize
parameters. Technically backwards compatible, but confusing.
* Ensure all strings are ASCII-8BIT/BINARY encoding prior to use
This topic is locked and can not be replied to.