Skip to main content

Python bindings for libsodium based on ctypes

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libnacl-2.0.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

libnacl-2.0.0-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file libnacl-2.0.0.tar.gz.

File metadata

  • Download URL: libnacl-2.0.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.7-arch1-1

File hashes

Hashes for libnacl-2.0.0.tar.gz
Algorithm Hash digest
SHA256 a580ed8bf3c406f5ff5af96ded482a70aeabcb2436c3af289a9bb6e411f2662f
MD5 e795d7b49226352cf43e19864e6f8f19
BLAKE2b-256 e3288d4f3a8abc7c71d4ea12bc46f62ce2b7cff7334e8966e9d808af1dc5e992

See more details on using hashes here.

Provenance

File details

Details for the file libnacl-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: libnacl-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.4.7-arch1-1

File hashes

Hashes for libnacl-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51a2db3fad4a6f6aa60a4bfcd32b7b618c26c5b12ca2d9a5b20b127f5bd6604a
MD5 ca74e61fe125f2d0ef152abc7129f937
BLAKE2b-256 affd026fd723cb5f532df7043080d87dc1872b8ef0248a096cc431e410558c6c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page