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

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
by
Dan Bernstein and his collaborators:

https://github.com/cryptosphere/rbnacl

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

https://speakerdeck.com/tarcieri/being-boring-a-su...

Version 2.0 is a refactoring designed to better reflect the extensible
API
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
is
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
check
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
(0.4.3+)
* 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
module
* Add a mutex around calls to randombytes in libsodium
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.