Skip to main content

This library is used to gain direct access to the functions exposed by Daniel J. Bernstein’s nacl library via libsodium. It has been constructed to maintain extensive documentation on how to use nacl as well as being completely portable. The file in libnacl/__init__.py can be pulled out and placed directly in any project to give a single file binding to all of nacl.

Higher Level Classes

The libnacl code also ships with many high level classes which make nacl cryptography easy and safe, for documentation please see: http://libnacl.readthedocs.org/

Why libnacl

There are a number of libraries out there binding to libsodium, so why make libnacl?

  1. libnacl does not have any non-python hard deps outside of libsodium

  2. libnacl does not need to be compiled

  3. libnacl is easy to package and very portable

  4. Inclusion of high level pythonic encryption classes

  5. Ability to have a single embeddable and transferable bindings file that can be added directly to python applications without needing to dep libnacl

This makes libnacl very portable, very easy to use and easy to distribute.

Install

The libnacl code is easiy installed via a setup.py from the source or via pip.

From Source:

tar xvf libnacl-1.5.2.tar.gz
cd libnacl-1.5.2
python setup.py install

Via Pip:

pip install libnacl

Remember that libnacl can be installed for python 2 and 3.

Linux distributions

Libnacl is shiped with many linux distributions, check your distribution package manager for the package python-libnacl, python2-libnacl and/or python3-libnacl.

Metadata

Release files for libnacl 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libnacl 2.1.0
File Size Uploaded
libnacl-2.1.0.tar.gz 42.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libnacl 2.1.0
File Interpreter ABI Platform
libnacl-2.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 64.1 kB

Release files / libnacl-2.1.0.tar.gz

Download URL libnacl-2.1.0.tar.gz
Size 42.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f3418da7df29e6d9b11fd7d990289d16397dc1020e4e35192e11aee826922860
BLAKE2b-256 checksum
How to use checksums
dffc65daa1a3fd7dd939133c30c6d393ea47e32317d2195619923b67daa29d60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.4.7-arch1-1

Release files / libnacl-2.1.0-py3-none-any.whl

Download URL libnacl-2.1.0-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8546b221afe8b72b6a9f298cd92a4c1f90570d7b5baa295acb1913644e230a5
BLAKE2b-256 checksum
How to use checksums
adce85fa0276de7303b44fef63e07c14d618b8630bbe41c7dd7e34db246eab8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.4.7-arch1-1

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

2.0.0

2 release files

1.9.0

2 release files

1.8.0

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7

2 release files

1.6.1

2 release files

1.6.0

1 release file

1.5.2

2 release files

1.5.1

2 release files

1.5.0

1 release file

1.4.5

1 release file

1.4.4

1 release file

1.4.3

1 release file

1.4.2

1 release file

1.4.1

1 release file

1.4.0

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page