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.1 - 2017-03-15:

    • Fixed a circular import bug in nacl.utils.

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

PyNaCl-1.1.1-cp36-cp36m-win_amd64.whl (128.1 kB view details)

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

PyNaCl-1.1.1-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.1-cp35-cp35m-win_amd64.whl (132.3 kB view details)

Uploaded CPython 3.5mWindows x86-64

PyNaCl-1.1.1-cp35-cp35m-win32.whl (132.2 kB view details)

Uploaded CPython 3.5mWindows x86

PyNaCl-1.1.1-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.1-cp34-cp34m-win_amd64.whl (126.4 kB view details)

Uploaded CPython 3.4mWindows x86-64

PyNaCl-1.1.1-cp34-cp34m-win32.whl (132.2 kB view details)

Uploaded CPython 3.4mWindows x86

PyNaCl-1.1.1-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.1-cp33-cp33m-win_amd64.whl (126.4 kB view details)

Uploaded CPython 3.3mWindows x86-64

PyNaCl-1.1.1-cp33-cp33m-win32.whl (132.2 kB view details)

Uploaded CPython 3.3mWindows x86

PyNaCl-1.1.1-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.1-cp27-cp27m-win_amd64.whl (126.5 kB view details)

Uploaded CPython 2.7mWindows x86-64

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

Uploaded CPython 2.7mWindows x86

PyNaCl-1.1.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for PyNaCl-1.1.1.tar.gz
Algorithm Hash digest
SHA256 a251393a93c4bd85e7a2c1c0e938dc8862743ae27d8def87c32b2888ccca049e
MD5 c1b11f6cd49f0302a63684cca626b2d5
BLAKE2b-256 43a192e28c14c77f37244ff9f3921536d326d353245e2da2fbb60a38556857b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 8006fb113e396a67a26d4d7b015c100422494bab4119c0d19d4126ccb02a6ece
MD5 fb365b92bebba267d28dc5146cb6f1ab
BLAKE2b-256 5ddbc574114716c45e51486dc91977d2663dce6d1995552b0728c72105eb51ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 a8c3011db66958bde4a94b47b85c2252d5c66111480c094db82d6fb81f68e60d
MD5 03e45bc761fb3e38f728ac999d75e37e
BLAKE2b-256 09f7137bd14ad03fcbf6885a971411327a0bb1c16549e0b8fd40fd1d2fb82549

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 78ea27da6eb42c21ceacf97411ad3c77ae6b73f03de4af47578ca1c223e8931d
MD5 73dbbc607108c9685f673f91bddc4b84
BLAKE2b-256 81c87c4e5adb4b67a3f6f77c71571091956d363d0958deaf5aa00d641b6736a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 49dceb26dfc89792f7df9018619bb501625b67a7115cd2a0e5a0713bdf2a5d80
MD5 837e848c02687b3ac5ac5cbb9bdea937
BLAKE2b-256 e40f269229c3df24421c6def886c0f6870e880cc10b2b22ee05f1e65879a0b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 8c0ed94200c03ce033c0f8b7bc5fb860f1725e36c0001781b65b148773d7771f
MD5 b4c0e63a01cb7c31c6c4e29dc6824c20
BLAKE2b-256 324db8b71d25b01cc7a055f7d032179078aeb08c83486360fff74b25a909383f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 d8a399af0adb580d00d8bd35f907428584928e68c0d172147406cdb485177d7f
MD5 2308040b552ca1b4ee62af97753a195d
BLAKE2b-256 9861f6d57e602b9736b40593e0ec7d970aba34517937b1ae9cd13df2c30cdaaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 8264d356c37686706e28bffba7ce34cb75bdf0dfd9c2ce0bdcff5779b49760d5
MD5 57c091a81ff803953a745f987e802ab6
BLAKE2b-256 7126596e73ad22ba5fc4a08c26cfa814cf98f1c352c047d9e320c6b045cdc61e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 82496bac8ffd54de42265196f9b85b3e9bcc3a4696727a63f49a355c77be1e05
MD5 4350b586304331a6f2424a3b0562ddac
BLAKE2b-256 e61b2853edd2c500ccc8a0039b4ed3ca49e7c98c497024c4211d48d4625b7646

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 30b0600371ee66e8f463307ef5b3d97558e6e7f45147759dddaabb1f15683aa1
MD5 9ca222ca109359009d9353e9fe12018f
BLAKE2b-256 a6ac67b4eebe0e81859ebd826e1223522ed8d861726894dfd963ef7e22832689

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 c983e779e15995df8ab4f5cf85d7c00e0d510f2133728367fa8dc1fb7c78bcaf
MD5 f512fd3fc6d098f1b7da0878a2e35f8c
BLAKE2b-256 939e197baa23c3e0dff4b950a51a4dd5dccb04d3ec90212676aceb6cdd328359

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 5e5a34cf8c8c781de0a7e8781eec60fd2b049e6c12d582010b165e26ffbc8922
MD5 30f09ad55d0a448a889c3bea8e3bbc43
BLAKE2b-256 60bc3f47500d2a2d4f8896b6cac9684c2a0d5616edbb4919063f33a3f0331753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp33-cp33m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 72f383eb79c993fdf5be2b0343bfbe5168bed56a934f0cee0da1f6d58f8104d3
MD5 4176fc5d79f337a307eea36fc840e65a
BLAKE2b-256 2b4dd2201955c239857b3a9e688231e35c44f0cda9b62a6fbb7863d4f20032ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 4890aa87f4970fd833b0612754164613a022da7e1ee856577bdb0a58155520b8
MD5 f5136a537e250c2b21d8913aeda9580d
BLAKE2b-256 37b8f12ff68da93beade9da6af8757d6ad62fcd174b59af87b1e0740d9c63e3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 702b4442b647906e1a7fc9c6d55b7e6f7f800acdea174ec4107498ab5bad3c68
MD5 2556e6dded9e91d7c25ad7df44b5a2c8
BLAKE2b-256 f0a953cb2bc4a8234e1485084f826cb9267d4068c00d180fa55a617256be62d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.1-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 7383fefa667b987123719935d26d68600bb739546303afebd66fe14cf7227ff6
MD5 808a7e566c532d36983fa07f248611a5
BLAKE2b-256 e9bde5ec69baea8810af69d42e061137bdbe613c4792da10fe476ed1f434e601

See more details on using hashes here.

Supported by

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