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.2 - 2017-03-31:

    • reorder link time library search path when using bundled libsodium

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

Uploaded Source

Built Distributions

PyNaCl-1.1.2-cp36-cp36m-win_amd64.whl (131.7 kB view details)

Uploaded CPython 3.6mWindows x86-64

PyNaCl-1.1.2-cp36-cp36m-win32.whl (140.0 kB view details)

Uploaded CPython 3.6mWindows x86

PyNaCl-1.1.2-cp36-cp36m-manylinux1_x86_64.whl (536.7 kB view details)

Uploaded CPython 3.6m

PyNaCl-1.1.2-cp36-cp36m-manylinux1_i686.whl (476.1 kB view details)

Uploaded CPython 3.6m

PyNaCl-1.1.2-cp36-cp36m-macosx_10_6_intel.whl (178.9 kB view details)

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

PyNaCl-1.1.2-cp35-cp35m-win_amd64.whl (140.0 kB view details)

Uploaded CPython 3.5mWindows x86-64

PyNaCl-1.1.2-cp35-cp35m-win32.whl (138.5 kB view details)

Uploaded CPython 3.5mWindows x86

PyNaCl-1.1.2-cp35-cp35m-manylinux1_x86_64.whl (536.7 kB view details)

Uploaded CPython 3.5m

PyNaCl-1.1.2-cp35-cp35m-manylinux1_i686.whl (476.2 kB view details)

Uploaded CPython 3.5m

PyNaCl-1.1.2-cp35-cp35m-macosx_10_6_intel.whl (178.9 kB view details)

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

PyNaCl-1.1.2-cp34-cp34m-win_amd64.whl (130.1 kB view details)

Uploaded CPython 3.4mWindows x86-64

PyNaCl-1.1.2-cp34-cp34m-win32.whl (138.7 kB view details)

Uploaded CPython 3.4mWindows x86

PyNaCl-1.1.2-cp34-cp34m-manylinux1_x86_64.whl (536.7 kB view details)

Uploaded CPython 3.4m

PyNaCl-1.1.2-cp34-cp34m-manylinux1_i686.whl (476.2 kB view details)

Uploaded CPython 3.4m

PyNaCl-1.1.2-cp34-cp34m-macosx_10_6_intel.whl (178.9 kB view details)

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

PyNaCl-1.1.2-cp33-cp33m-win_amd64.whl (130.1 kB view details)

Uploaded CPython 3.3mWindows x86-64

PyNaCl-1.1.2-cp33-cp33m-win32.whl (138.7 kB view details)

Uploaded CPython 3.3mWindows x86

PyNaCl-1.1.2-cp33-cp33m-manylinux1_x86_64.whl (536.6 kB view details)

Uploaded CPython 3.3m

PyNaCl-1.1.2-cp33-cp33m-manylinux1_i686.whl (476.0 kB view details)

Uploaded CPython 3.3m

PyNaCl-1.1.2-cp33-cp33m-macosx_10_6_intel.whl (178.9 kB view details)

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

PyNaCl-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl (539.8 kB view details)

Uploaded CPython 2.7mu

PyNaCl-1.1.2-cp27-cp27mu-manylinux1_i686.whl (479.0 kB view details)

Uploaded CPython 2.7mu

PyNaCl-1.1.2-cp27-cp27m-win_amd64.whl (130.2 kB view details)

Uploaded CPython 2.7mWindows x86-64

PyNaCl-1.1.2-cp27-cp27m-win32.whl (138.8 kB view details)

Uploaded CPython 2.7mWindows x86

PyNaCl-1.1.2-cp27-cp27m-manylinux1_x86_64.whl (539.8 kB view details)

Uploaded CPython 2.7m

PyNaCl-1.1.2-cp27-cp27m-manylinux1_i686.whl (478.9 kB view details)

Uploaded CPython 2.7m

PyNaCl-1.1.2-cp27-cp27m-macosx_10_6_intel.whl (178.8 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for PyNaCl-1.1.2.tar.gz
Algorithm Hash digest
SHA256 32f52b754abf07c319c04ce16905109cab44b0e7f7c79497431d3b2000f8af8c
MD5 1963c14272a42585676e74cf6292f4e3
BLAKE2b-256 8df302605b056e465bf162508c4d1635a2bccd9abd1ee3ed2a1bb4e9676eac33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 b796d95704b674100bd99fc42bbde9f8f2ccddae8599a4d4bbcb518428dfbfed
MD5 134967a06e94d47733f5bd3b27f80545
BLAKE2b-256 5711934a0dcb771770591eae03758471082e9ba92800c6a0c37fe80549833105

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 ffb74ac578b3b80b1d2d5a23a6dd7b1d6682e5fce6a7b3d21b46b180a5546055
MD5 5cf0d65abf73c9e6572c51915631a671
BLAKE2b-256 4bb83e63bdfea14058c9e05005c69b883f213d4076245c582ad82a9ad468db6c

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ca2deb968135f1400105ca902f5cef24ba6984b6a4904756498afcb9077c76f9
MD5 0ad83d3bc591b04ce9dc7160e5515130
BLAKE2b-256 51d797d167ae204c78d76016f765f16d30309db1ea45b0ff4a9caeda2b355ffe

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp36-cp36m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp36-cp36m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 75a427377b2088c29a44db08c796c75a9cde2f9725dd041903cfbc0f6034895c
MD5 367dccf4555164e3d819717430222f97
BLAKE2b-256 f2689d497bb861ba31edc10097669bb95ee22f63893a0db7b779be46556aa67e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3fd984580cbea8e02fc531aa32ab9487b72c30127f9e4c8db9ba3fe8950ecc93
MD5 dec01fe50b79c2455e9bc99552e4d72b
BLAKE2b-256 4105fa302decf29710f3079ad3778d796ef5040b6bf02e37c98bfd47141274f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 dfc85c2b414dee700e32764559d560063825ec1470d3ee6c973e43c80a622e56
MD5 3840aba3093ef6d188b3fdce1160fb4e
BLAKE2b-256 accdd19e7e4154e724edde4bdc886a674a6366416e0b65e4801821856e6e572d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 67b75a950dbc4025bfa549c183baa17db4096955912f385df31830e5a2121974
MD5 edcd117261f5e8ef8ca5029f1b565719
BLAKE2b-256 6b98f3323b487caa0a5e1c98c63ff719d7ded2e35bba2c01afeb0e35b991880f

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9532aaa446840ece574c719ad3bbf25f60ca9871f48b5446e3f73e8b498e2398
MD5 bf1c909c6e09b3845f39a6e8cfdb34e9
BLAKE2b-256 8d64b8389487e69f8d8fe0a82272eb0f3d81c8df2f8df7a3c2180cfc19e7e840

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp35-cp35m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp35-cp35m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 7d14f18f8bc43977691276097524b9713d21b9635fea9791311261a66e4fe296
MD5 5af698b71b2b213603f0c5df85cedef4
BLAKE2b-256 7d91f4e09989db104301afc5c7c4a0748ee0bf2765ab9e5d646d42a886ca506b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 4a3be9f884df08087996516707446ba55648bbefae8428bf578fa05f20fa2ed9
MD5 ad798fe9784af392ebc2cbcadff75744
BLAKE2b-256 bfec0bffc486a75ef98a3fea406b3293f90c2036b50b275b1d75de8ef378e392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp34-cp34m-win_amd64.whl
Algorithm Hash digest
SHA256 f01405a5c453b866e35338c53882f7ba7069c1f4e4045ce67513ad45c796f8a5
MD5 45e30f295cb79fa1224b71c614978f8c
BLAKE2b-256 ebd6e5391381f3234b5816aecd964fbda349293611062ab4f510ecc792927527

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp34-cp34m-win32.whl
Algorithm Hash digest
SHA256 813d4170f62d68236bb041cf731e8d1f34fc1006a5e5d81139bead6ddaa9d169
MD5 305b9ed0d2569e6d6be13dd4b97a910f
BLAKE2b-256 290f84414ba6c918602d02c03afb2017153c9d601eefeac4af25267ff21e1520

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ceb16b7977123713ad898450ca86a2dc6706a17fe4cf278ffb6b76929c186550
MD5 91460806cbc5f91f278c917d538cc1d9
BLAKE2b-256 8ecb5c086f6b2e7230298822ea80cdbe0820f9566d5e17d3dfa051e2ab1fa7d6

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp34-cp34m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp34-cp34m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 123c41df1db119397f2e26e9c63ca2ea853d3663e26b1c389bd3859dc1b7178a
MD5 7cc3b2c5594e4837d3bf4561deb73fe5
BLAKE2b-256 64377135514cba85cfe667f171d39cc950e6e8c9e205b759cac10cd74f5f8989

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 877879903cddb5da317fe86d923f65eb28c62fd7feb79cd3402d166e401f9423
MD5 b6d398a8343319985541d4386524e657
BLAKE2b-256 7560957c5dedd8b5818f6168f58109020b06f87295d2661b896bca053aac4508

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp33-cp33m-win_amd64.whl
Algorithm Hash digest
SHA256 5172395dea8203ae124fd282fef3d242aa75366d66aebc0f5aab0c4753eed97b
MD5 f06dd2406d928521aaf2200a3e35031a
BLAKE2b-256 30f3fb755a619a621b1d365c389d861b952cddc50b8831b808f2b9e5b1df9996

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp33-cp33m-win32.whl
Algorithm Hash digest
SHA256 53d83faf274813a5778bba1cd4cb96b79f39e44a63b1c4a4dada01a2b0eeafe8
MD5 edf28b9fa758b18a255de84cb87698b7
BLAKE2b-256 6ab286077d62829b9c61187c050294803fccbc7ded75837a7dff5376eb8b29b4

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp33-cp33m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp33-cp33m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c4ea0e3b9f3317ada56e12c7b37f6d0316900ae8b54a20d7b100d4e14350ac87
MD5 6c4f45087ae624c5fdbc2e7341e16c86
BLAKE2b-256 8f290f07828e4825941af4a7494706682b8fd9587d5bdbaafd9ca208fbd3af21

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp33-cp33m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp33-cp33m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 4c15d7cea1a313fff3f68222e682ee1f855e43c0865081cad7385066a6b57d75
MD5 f1156f9b37de45518f45ecd114923186
BLAKE2b-256 209104c0ca6078f4c35c277235129372fcb068b8d2cffc5fc1a58aadd4870e58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp33-cp33m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 506bc2591968a1a7b6577075bc29a591d8fff5bdfec03b0dd926f34b75b670e5
MD5 ce661e7df2a01a37a0c281a046d13da2
BLAKE2b-256 c6371a0fcadf62afdbce768b55e74b28669e0506852bb5e3c0cb44c96a9fdcec

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 57314a7bad4bd39501dc622942f9921923673e52e126b0fc4f0214b5d25d619a
MD5 d57ec0401beaf257ef8e5511172a27aa
BLAKE2b-256 44f45898418f5838986f7473f15a01b646a2761b693ab7d537cb220648cea28c

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp27-cp27mu-manylinux1_i686.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27mu-manylinux1_i686.whl
Algorithm Hash digest
SHA256 99f91eb80b85fe16f70d362cfeae8eeeb108cd09a85f039fdab02164762f764b
MD5 416d85fca67789240c08c02300472a85
BLAKE2b-256 f020455366ce15293e98bf15203ed5c9b17bfb155c5a3f2f0e5723719ce79d36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27m-win_amd64.whl
Algorithm Hash digest
SHA256 1b4938a557b32e5c6b27fac79a94cf1abb70753b5462a0b577bd2a77e09dacd0
MD5 da5f623f8d08731f3957fdeb78240d9d
BLAKE2b-256 446bdb51fbdeba8a142c918c7902c983dfeff82a20e54fbc87eb9c828a74516f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27m-win32.whl
Algorithm Hash digest
SHA256 c93d151efcdd7d214b1b11d781c9f1b125f0208cd06d9762bddabdfeac1cedfc
MD5 b125c0dee2f4f1417d1707529047f657
BLAKE2b-256 73e4bdf6d0c513501c267b7f5c188e10d49acf8feffcbc8962cb827a060ab568

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4d21d733a63637ddf41d0cab50135ec9f5224dd22fd10ebf5c5f5f946b833f84
MD5 ca68f3a277708d4ccf93c93699a5019d
BLAKE2b-256 6551bffa92c571c0b06fc04c8d37452be876896de2d4ec67a958921d6f31a211

See more details on using hashes here.

File details

Details for the file PyNaCl-1.1.2-cp27-cp27m-manylinux1_i686.whl.

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27m-manylinux1_i686.whl
Algorithm Hash digest
SHA256 301c966c1e17950e50d174ab4b2e7ef3e98ff51ad7a591152a19fe2139281eed
MD5 245db6075b9639944172cc08318964bd
BLAKE2b-256 b9af3be6b0fe146758a7ad02e376ee1180dd28e367da278b8bd3cad99b9085af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyNaCl-1.1.2-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 9558ef5c1ae45322c054d1d1151016e0463b4da8b5c746a675e99c5c7d8f4faa
MD5 9070f2db7750946b8da0396eee00f4f0
BLAKE2b-256 d85e3f0e4d44af50da09c473adb3ad6ab3756749fbddbc43083cfe6ee19f5633

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