#crypto #nacl


A wrapper around NaCl which makes working with cryptography even easier

14 stable releases

3.2.9 Oct 7, 2022
3.2.8 Sep 30, 2022
3.2.6 Jul 26, 2022
3.2.3 Jun 12, 2022
1.0.0 Feb 26, 2022

#863 in Cryptography

Download history 10/week @ 2023-08-12 21/week @ 2023-08-19 20/week @ 2023-08-26 40/week @ 2023-09-02 14/week @ 2023-09-09 6/week @ 2023-09-16 9/week @ 2023-09-23 8/week @ 2023-09-30 17/week @ 2023-10-07 18/week @ 2023-10-14 18/week @ 2023-10-21 30/week @ 2023-10-28 20/week @ 2023-11-04 19/week @ 2023-11-11 7/week @ 2023-11-18 35/week @ 2023-11-25

85 downloads per month
Used in libkeycard




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/


~203K SLoC