#crypto #nacl


A wrapper around NaCl which makes working with cryptography even easier

12 stable releases

Uses new Rust 2021

3.2.7 Sep 5, 2022
3.2.6 Jul 26, 2022
3.2.3 Jun 12, 2022
3.1.1 May 28, 2022
1.0.0 Feb 26, 2022

#254 in Cryptography

Download history 59/week @ 2022-06-07 32/week @ 2022-06-14 13/week @ 2022-06-21 9/week @ 2022-06-28 12/week @ 2022-07-05 29/week @ 2022-07-12 59/week @ 2022-07-19 67/week @ 2022-07-26 8/week @ 2022-08-02 21/week @ 2022-08-09 16/week @ 2022-08-16 47/week @ 2022-08-23 32/week @ 2022-08-30 42/week @ 2022-09-06 27/week @ 2022-09-13 4/week @ 2022-09-20

114 downloads per month
Used in libkeycard


917 lines


EZNaCl is an MPL2.0-licensed library written in Rust that wraps around LibSodium and gets as close to push-button cryptography as a developer can feasibly be. At the same time, because it's cryptography, you still need to be very careful applying it.

No guarantees of any kind are provided with the library even though it has been written with care.

Also, please don't use this code to place important crypto keys in your code or embed backdoors. No one needs that kind of drama.


Cryptography is really hard. Any code which implements it is equally hard. Anything which touches the implementation code isn't much easier. NaCl and LibSodium made it a lot easier, but it's still kind of hard to figure out for newcomers to encryption. This library came from a need to work with crypto keys over a text-based protocol. It had the added benefit of easing debugging code which interacts with cryptography.

Full documentation for the library can be found at https://docs.rs/eznacl/latest/eznacl/


~182K SLoC