Skip to main content

Python binding to the Networking and Cryptography (NaCl) library

Project description

Latest Version https://travis-ci.org/pyca/pynacl.svg?branch=master https://coveralls.io/repos/pyca/pynacl/badge.svg?branch=master

PyNaCl is a Python binding to the Networking and Cryptography library, a crypto library with the stated goal of improving usability, security and speed.

Installation

Linux

PyNaCl relies on libsodium, a portable C library. A copy is bundled with PyNaCl so to install you can run:

$ pip install pynacl

If you’d prefer to use one provided by your distribution you can disable the bundled copy during install by running:

$ SODIUM_INSTALL=system pip install pynacl

Mac OS X & Windows

PyNaCl ships as a binary wheel on OS X and Windows so all dependencies are included. Make sure you have an up-to-date pip and run:

$ pip install pynacl

Features

  • Digital signatures

  • Secret-key encryption

  • Public-key encryption

Changes

  • 1.0.1:

    • Fix an issue with absolute paths that prevented the creation of wheels.

  • 1.0:

    • PyNaCl has been ported to use the new APIs available in cffi 1.0+. Due to this change we no longer support PyPy releases older than 2.6.

    • Python 3.2 support has been dropped.

    • Functions to convert between Ed25519 and Curve25519 keys have been added.

  • 0.3.0:

    • The low-level API (nacl.c.*) has been changed to match the upstream NaCl C/C++ conventions (as well as those of other NaCl bindings). The order of arguments and return values has changed significantly. To avoid silent failures, nacl.c has been removed, and replaced with nacl.bindings (with the new argument ordering). If you have code which calls these functions (e.g. nacl.c.crypto_box_keypair()), you must review the new docstrings and update your code/imports to match the new conventions.

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

PyNaCl-1.0.1.tar.gz (2.7 MB view hashes)

Uploaded Source

Built Distributions

PyNaCl-1.0.1-cp36-cp36m-win_amd64.whl (100.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

PyNaCl-1.0.1-cp36-cp36m-win32.whl (104.8 kB view hashes)

Uploaded CPython 3.6m Windows x86

PyNaCl-1.0.1-cp36-cp36m-macosx_10_6_intel.whl (137.7 kB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

PyNaCl-1.0.1-cp35-none-win_amd64.whl (102.2 kB view hashes)

Uploaded CPython 3.5 Windows x86-64

PyNaCl-1.0.1-cp35-none-win32.whl (103.8 kB view hashes)

Uploaded CPython 3.5 Windows x86

PyNaCl-1.0.1-cp35-cp35m-macosx_10_6_intel.whl (138.1 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ intel

PyNaCl-1.0.1-cp34-none-win_amd64.whl (99.2 kB view hashes)

Uploaded CPython 3.4 Windows x86-64

PyNaCl-1.0.1-cp34-none-win32.whl (103.6 kB view hashes)

Uploaded CPython 3.4 Windows x86

PyNaCl-1.0.1-cp34-cp34m-macosx_10_6_intel.whl (138.0 kB view hashes)

Uploaded CPython 3.4m macOS 10.6+ intel

PyNaCl-1.0.1-cp33-none-win_amd64.whl (99.2 kB view hashes)

Uploaded CPython 3.3 Windows x86-64

PyNaCl-1.0.1-cp33-none-win32.whl (103.6 kB view hashes)

Uploaded CPython 3.3 Windows x86

PyNaCl-1.0.1-cp33-cp33m-macosx_10_6_intel.whl (138.0 kB view hashes)

Uploaded CPython 3.3m macOS 10.6+ intel

PyNaCl-1.0.1-cp27-none-win_amd64.whl (99.2 kB view hashes)

Uploaded CPython 2.7 Windows x86-64

PyNaCl-1.0.1-cp27-none-win32.whl (103.7 kB view hashes)

Uploaded CPython 2.7 Windows x86

PyNaCl-1.0.1-cp27-none-macosx_10_6_intel.whl (138.0 kB view hashes)

Uploaded CPython 2.7 macOS 10.6+ intel

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