Forum: Ruby RbNaCl 2.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 2013-11-12 19:46
(Received via mailing list)
RbNaCl is a Ruby FFI binding to the Networking and Cryptography Library
Dan Bernstein and his collaborators:

The slides from a recent presentation by library author Tony Arcieri
truly) are available on SpeakerDeck:

Version 2.0 is a refactoring designed to better reflect the extensible
of the C library which allows for the inclusion of additional primitives
beyond the defaults found in the library today.

Full list of changes from the 1.x releases:

* Add encrypt/decrypt aliases for Crypto::RandomNonceBox
* Rename Crypto module to RbNaCl module
* RbNaCl::VerifyKey#verify operand order was reversed. New operand order
signature, message instead of message, signature
* RbNaCL::SecretBox#open, RbNaCl::Box#open, Auth#verify and
VerifyKey#verify all now raise a (descendent of) CryptoError if the
fails. This ensures failures are handled by the program.
* RbNaCl::SecretBox, Box, etc. are all now aliases for the real
implementations, which are named after the primitives they provide
* Encoders have now gone.
* Add support for the Blake2b cryptographic hash algorithm.
* Add checks that we have a sufficiently recent version of libsodium
* Dropped ruby-1.8 support
* Call the sodium_init() function, to select the best algorithms.
* Fix some typos in the documentation
* Changes in the low level binding for libsodium and removal of the NaCl
* Add a mutex around calls to randombytes in libsodium
This topic is locked and can not be replied to.