#crypto #NaCl #libsodium

sodiumoxide

Fast cryptographic library for Rust (bindings to libsodium)

17 releases

0.1.0 Jun 6, 2018
0.0.16 Dec 3, 2017
0.0.15 May 24, 2017
0.0.14 Jan 26, 2017
0.0.2 Mar 26, 2015

#36 in Cryptography

Download history 984/week @ 2018-08-22 1199/week @ 2018-08-29 1219/week @ 2018-09-05 1274/week @ 2018-09-12 1314/week @ 2018-09-19 1180/week @ 2018-09-26 1281/week @ 2018-10-03 1466/week @ 2018-10-10 1292/week @ 2018-10-17 1442/week @ 2018-10-24 1407/week @ 2018-10-31 1404/week @ 2018-11-07 1324/week @ 2018-11-14

4,018 downloads per month
Used in 57 crates (48 directly)

MIT/Apache

2MB
4K SLoC

sodiumoxide

Build Status Latest Version Join the chat at https://gitter.im/rust-sodiumoxide/Lobby

NaCl (pronounced "salt") is a new easy-to-use high-speed software library for network communication, encryption, decryption, signatures, etc. NaCl's goal is to provide all of the core operations needed to build higher-level cryptographic tools. Of course, other libraries already exist for these core operations. NaCl advances the state of the art by improving security, by improving usability, and by improving speed.

Sodium is a portable, cross-compilable, installable, packageable fork of NaCl (based on the latest released upstream version nacl-20110221), with a compatible API.

This package aims to provide a type-safe and efficient Rust binding that's just as easy to use.

Dependencies

Sodium (installation)

Building

cargo build

Testing

cargo test

Documentation

cargo doc

Documentation will be generated in target/doc/...

Most documentation is taken from NaCl, with minor modification where the API differs between the C and Rust versions.

Documentation for the latest build can be found at gh-pages.

Optional features

Several optional features are available:

  • std (default: enabled). When this feature is disabled, sodiumoxide builds using #![no_std]. Some functionality may be lost. Requires a nightly build of Rust.

  • serde (default: enabled). Allows serialization and deserialization of keys, authentication tags, etc. using the serde library.

  • benchmarks (default: disabled). Compile benchmark tests. Requires a nightly build of Rust.

Examples

TBD

Join in

File bugs in the issue tracker

Master git repository

git clone https://github.com/sodiumoxide/sodiumoxide.git

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies