NaCl (software)

Not to be confused with Google Native Client.

NaCl (pronounced "salt") is an abbreviation for "Networking and Cryptography library", a public domain "...high-speed software library for network communication, encryption, decryption, signatures, etc".[1]

NaCl was created by the mathematician and programmer Daniel J. Bernstein who is best known for the creation of qmail and Curve25519. The core team also includes Tanja Lange[2] and Peter Schwabe.[3] The main goal while creating NaCl, according to the paper, was to "avoid various types of cryptographic disaster suffered by previous cryptographic libraries".

Basic functions

Public-key cryptography

Secret-key cryptography

Low-level functions

Key features

Implementations

Reference implementation is written in C, often with several inline assembler. C++ and Python are handled as wrappers.[5]

NaCl has a variety of programming language bindings including Ruby,[6] PHP,[7] and Python, and forms the basis for Sodium, a cross-platform cryptography library created in 2013 which is API compatible with NaCl.[8][9]

Alternative implementation

References

  1. "NaCl: Networking and Cryptography library".
  2. "Tanja Lange's Homepage".
  3. "Peter Schwabe's Homepage".
  4. Bernstein, Daniel J. (10 March 2009). Cryptography in NaCl (PDF).
  5. "NaCl Internals".
  6. "RbNaCl". Github.
  7. "NaCl PHP Extension". Github.
  8. Hubbard, Dan (6 March 2013). "Introducing Sodium, a New Cryptographic Library". OpenDNS Blog. Retrieved 1 March 2014.
  9. "libsodium". Github.
  10. "TweetNaCl".

See also