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://codecov.io/github/pyca/pynacl/coverage.svg?branch=master

PyNaCl is a Python binding to libsodium, which is a fork of the Networking and Cryptography library. These libraries have a stated goal of improving usability, security and speed. It supports Python 2.7 and 3.3+ as well as PyPy 2.6+.

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.1.0 - 2017-03-14:

    • Dropped support for Python 2.6.

    • Added shared_key() method on Box.

    • You can now pass None to nonce when encrypting with Box or SecretBox and it will automatically generate a random nonce.

    • Added support for siphash24.

    • Added support for blake2b.

    • Added support for scrypt.

    • Update libsodium to 1.0.11.

    • Default to the bundled libsodium when compiling.

    • All raised exceptions are defined mixing-in nacl.exceptions.CryptoError

  • 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.1.0.tar.gz (3.1 MB view details)

Uploaded Source

Built Distributions

PyNaCl-1.1.0-cp36-cp36m-win_amd64.whl (128.0 kB view details)

Uploaded CPython 3.6mWindows x86-64

PyNaCl-1.1.0-cp36-cp36m-win32.whl (133.6 kB view details)

Uploaded CPython 3.6mWindows x86

PyNaCl-1.1.0-cp36-cp36m-macosx_10_6_intel.whl (178.8 kB view details)

Uploaded CPython 3.6mmacOS 10.6+ Intel (x86-64, i386)

PyNaCl-1.1.0-cp35-cp35m-win_amd64.whl (132.3 kB view details)

Uploaded CPython 3.5mWindows x86-64

PyNaCl-1.1.0-cp35-cp35m-win32.whl (132.1 kB view details)

Uploaded CPython 3.5mWindows x86

PyNaCl-1.1.0-cp35-cp35m-macosx_10_6_intel.whl (178.8 kB view details)

Uploaded CPython 3.5mmacOS 10.6+ Intel (x86-64, i386)

PyNaCl-1.1.0-cp34-cp34m-win_amd64.whl (126.4 kB view details)

Uploaded CPython 3.4mWindows x86-64

PyNaCl-1.1.0-cp34-cp34m-win32.whl (132.1 kB view details)

Uploaded CPython 3.4mWindows x86

PyNaCl-1.1.0-cp34-cp34m-macosx_10_6_intel.whl (178.8 kB view details)

Uploaded CPython 3.4mmacOS 10.6+ Intel (x86-64, i386)

PyNaCl-1.1.0-cp33-cp33m-win_amd64.whl (126.4 kB view details)

Uploaded CPython 3.3mWindows x86-64

PyNaCl-1.1.0-cp33-cp33m-win32.whl (132.1 kB view details)

Uploaded CPython 3.3mWindows x86

PyNaCl-1.1.0-cp33-cp33m-macosx_10_6_intel.whl (178.8 kB view details)

Uploaded CPython 3.3mmacOS 10.6+ Intel (x86-64, i386)

PyNaCl-1.1.0-cp27-cp27m-win_amd64.whl (126.4 kB view details)

Uploaded CPython 2.7mWindows x86-64

PyNaCl-1.1.0-cp27-cp27m-win32.whl (132.2 kB view details)

Uploaded CPython 2.7mWindows x86

PyNaCl-1.1.0-cp27-cp27m-macosx_10_6_intel.whl (178.7 kB view details)

Uploaded CPython 2.7mmacOS 10.6+ Intel (x86-64, i386)

File details

Details for the file PyNaCl-1.1.0.tar.gz.

File metadata

  • Download URL: PyNaCl-1.1.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyNaCl-1.1.0.tar.gz
Algorithm Hash digest
SHA256 37f3c9cfd144b7f92d50e2dcdc02fbfc222f8faba0986bf71cffbba34c57cd10
MD5 ae1650b91da29c59af7dafb6d1bd7979
BLAKE2b-256 5556d213627a4c335c23c58d802108dba9caa49497598ec5815511e923786a7e

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp36-cp36m-win_amd64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 cdce9631b27e06c7d1678103a8e75d03259271f886642e03434bdbf896ecbfe0
MD5 f212412767258d1c60ee497777dfc0b8
BLAKE2b-256 ec7f396890ca8b34c5448490d1961105a0d1e176daa45b2b199e34cf1910c399

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp36-cp36m-win32.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 d4798748e90ecffdda757b18ed9cddea43be4a2503eb87eba91e86de0af3a91e
MD5 974105868c78ae498e42d93ddc7f094b
BLAKE2b-256 a51987ac95d54aeb0593e0e768b40d346da74b86c82e051be10a0178102bd044

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 066d590e018893a33f75711d13007b858c054ab46ff32db2654471193303ace8
MD5 c8faae8cba300a2407762a7dad8b49ff
BLAKE2b-256 27c135c15cfb9c34d551429b54326e2eecbdec95b8f0016f04447adfe734142e

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp35-cp35m-win_amd64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 319954533544286e10ba2ba4d400747da134d7ea445d12bcabce25a44f1ff3a5
MD5 b017671d7655d586442a1db0a9ec8c4c
BLAKE2b-256 d1626b0ea9319347ae7678c631f0db1d0d98398fc55a4e887df81545c4a10d08

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp35-cp35m-win32.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 bb383a68ca8e3c1014bc55149be9e7620d23cc54d2e73d291044034eb0efa617
MD5 977fb3a3b94be892403ed7a8e3adc974
BLAKE2b-256 b2e51511ae840a7a4c481eeafea087df8835ed24431801ddcef5547eee70ec64

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 a9e043e07f9373e2c2f2608fb7b7c31a0a9f17f67a0f928bb4f9f294fff56b01
MD5 8e2e5e8fd836564960bbd6e9ea82c1f4
BLAKE2b-256 fe5cf16cb36f646520841eafc6985a9f8588056a4528fca68de021f6853e4187

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp34-cp34m-win_amd64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 0b48b9edd907c3a4b160b0decb281a0f96ced4cb7fc447ff2ccc2b32d4177dab
MD5 d35ed8b88541eadc0242e9407fbb6fc1
BLAKE2b-256 0cfe6568178a4be8eac10e01ddac9f1a5302718b6fd5e895c201b3613d2c783e

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp34-cp34m-win32.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 a3f550951edf0918458b37432430f874846d2a634c378e4e762a617533dc0c34
MD5 9ee4479ff1e0c2b832131b53ddf0aa86
BLAKE2b-256 8b4fc3d73a2add9eac9057b657786195cd76ead04f79a28c3a3ee14934928439

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 401d6ec12e44b938fdd068f0e37cdf6de46ac71c227a2cb0e78ceca6a47fd8d5
MD5 1011ef3d38f4f2588d93b82d7d24f532
BLAKE2b-256 4018d1cf2324cd9d227a7eb7b8c10679b432cbb1b8a05dc932d7772d0c35367f

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp33-cp33m-win_amd64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 218d73d8cd30de561aaba7eacdc1da39688d3f2781e6ffde6c1251242842f444
MD5 7d905759a351d68f4357d74913748a71
BLAKE2b-256 d479ec2cb738d4e69fcb6cbe2e7170c85e0c0085a260224c5a5b6f86113682a4

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp33-cp33m-win32.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 cb6474b53edd351389693b73dc448bd6e05f99ec01734a8ef0e59efd47c1f478
MD5 d5e5e5cf49583d488487f90d471382be
BLAKE2b-256 4dbe8d8a24f8a229d8a9143fa2206530fa491caccf23a2b8a09b8ba850b4d185

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp33-cp33m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp33-cp33m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 c6c9d33151ef19b9a25cbd377612b690f1492283232e18f17640999c6af2d359
MD5 73fcf9efa1ace79ee8cb6afdb5fa6622
BLAKE2b-256 36f1a0d995cca5351db704d15677cb818c9aec9ae1fceca45e918c52bc0fbce5

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp27-cp27m-win_amd64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 98db34cc084efb22db514d88397b2fc4e7a24209314e7c00d444d476c935a8fa
MD5 16d9df0141297d8fbbd38f2b1b991104
BLAKE2b-256 d24474dbfb85e7209c75a67e081080005763955ab5b6aa0e34e9e2b2a699c3f6

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp27-cp27m-win32.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 a5b88573cf6011be16d0dfea08e50f13621204afa4c2321d276b4385da6de3ae
MD5 8e8a672004b4b6210bb0aea05bd5b89c
BLAKE2b-256 ae554aa807f886d27d5828ca5f1b8687f9f08bdce98f7369758ff9ae1a56aad3

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.0-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.0-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 f645265ba38991f1f1be8870246815d5bddded86a2dee35f04e843d636c937d1
MD5 0797cdb340b2c61a2095217dd8f86664
BLAKE2b-256 ad05e9f0a629c2481dad8cc421f09212c134ea592f69dd301139a2dcbd291b4c

See more details on using hashes here.

Supported by

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