9 releases

0.0.23 Sep 6, 2019
0.0.22 Mar 28, 2019
0.0.20 Jun 20, 2018
0.0.17 May 30, 2018
0.0.14 Sep 14, 2017

#258 in Magic Beans

Download history 109/week @ 2021-04-06 171/week @ 2021-04-13 128/week @ 2021-04-20 139/week @ 2021-04-27 375/week @ 2021-05-04 223/week @ 2021-05-11 146/week @ 2021-05-18 106/week @ 2021-05-25 250/week @ 2021-06-01 359/week @ 2021-06-08 149/week @ 2021-06-15 156/week @ 2021-06-22 177/week @ 2021-06-29 167/week @ 2021-07-06 131/week @ 2021-07-13 118/week @ 2021-07-20

798 downloads per month
Used in 21 crates (via exonum_sodiumoxide)


2.5K SLoC


Build Status Build status

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.




cargo build


cargo test


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.


extern crate exonum_sodiumoxide;


Join in

File bugs in the issue tracker

Master git repository

git clone https://github.com/exonum/exonum_sodiumoxide.git


Licensed under either of

at your option.


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.