Skip to main content
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.

Metadata

Release files for PyNaCl 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyNaCl 1.1.1
File Size Uploaded
PyNaCl-1.1.1.tar.gz 3.1 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for PyNaCl 1.1.1
File
PyNaCl-1.1.1-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
PyNaCl-1.1.1-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
PyNaCl-1.1.1-cp36-cp36m-macosx_10_6_intel.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
PyNaCl-1.1.1-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
PyNaCl-1.1.1-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
PyNaCl-1.1.1-cp35-cp35m-macosx_10_6_intel.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
PyNaCl-1.1.1-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
PyNaCl-1.1.1-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
PyNaCl-1.1.1-cp34-cp34m-macosx_10_6_intel.whl CPython 3.4 CPython 3.4 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
PyNaCl-1.1.1-cp33-cp33m-win_amd64.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-64 Details
PyNaCl-1.1.1-cp33-cp33m-win32.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-32 Details
PyNaCl-1.1.1-cp33-cp33m-macosx_10_6_intel.whl CPython 3.3 CPython 3.3 pymalloc macOS 10.6+ Intel (x86-64, i386) Details
PyNaCl-1.1.1-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
PyNaCl-1.1.1-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
PyNaCl-1.1.1-cp27-cp27m-macosx_10_6_intel.whl CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386) Details

Total release size: 5.3 MB

Release files / PyNaCl-1.1.1.tar.gz

Download URL PyNaCl-1.1.1.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
a251393a93c4bd85e7a2c1c0e938dc8862743ae27d8def87c32b2888ccca049e
BLAKE2b-256 checksum
How to use checksums
43a192e28c14c77f37244ff9f3921536d326d353245e2da2fbb60a38556857b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp36-cp36m-win_amd64.whl

Download URL PyNaCl-1.1.1-cp36-cp36m-win_amd64.whl
Size 128.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
8006fb113e396a67a26d4d7b015c100422494bab4119c0d19d4126ccb02a6ece
BLAKE2b-256 checksum
How to use checksums
5ddbc574114716c45e51486dc91977d2663dce6d1995552b0728c72105eb51ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp36-cp36m-win32.whl

Download URL PyNaCl-1.1.1-cp36-cp36m-win32.whl
Size 133.6 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
a8c3011db66958bde4a94b47b85c2252d5c66111480c094db82d6fb81f68e60d
BLAKE2b-256 checksum
How to use checksums
09f7137bd14ad03fcbf6885a971411327a0bb1c16549e0b8fd40fd1d2fb82549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp36-cp36m-macosx_10_6_intel.whl

Download URL PyNaCl-1.1.1-cp36-cp36m-macosx_10_6_intel.whl
Size 178.8 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
78ea27da6eb42c21ceacf97411ad3c77ae6b73f03de4af47578ca1c223e8931d
BLAKE2b-256 checksum
How to use checksums
81c87c4e5adb4b67a3f6f77c71571091956d363d0958deaf5aa00d641b6736a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp35-cp35m-win_amd64.whl

Download URL PyNaCl-1.1.1-cp35-cp35m-win_amd64.whl
Size 132.3 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
49dceb26dfc89792f7df9018619bb501625b67a7115cd2a0e5a0713bdf2a5d80
BLAKE2b-256 checksum
How to use checksums
e40f269229c3df24421c6def886c0f6870e880cc10b2b22ee05f1e65879a0b1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp35-cp35m-win32.whl

Download URL PyNaCl-1.1.1-cp35-cp35m-win32.whl
Size 132.2 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
8c0ed94200c03ce033c0f8b7bc5fb860f1725e36c0001781b65b148773d7771f
BLAKE2b-256 checksum
How to use checksums
324db8b71d25b01cc7a055f7d032179078aeb08c83486360fff74b25a909383f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp35-cp35m-macosx_10_6_intel.whl

Download URL PyNaCl-1.1.1-cp35-cp35m-macosx_10_6_intel.whl
Size 178.8 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
d8a399af0adb580d00d8bd35f907428584928e68c0d172147406cdb485177d7f
BLAKE2b-256 checksum
How to use checksums
9861f6d57e602b9736b40593e0ec7d970aba34517937b1ae9cd13df2c30cdaaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp34-cp34m-win_amd64.whl

Download URL PyNaCl-1.1.1-cp34-cp34m-win_amd64.whl
Size 126.4 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
8264d356c37686706e28bffba7ce34cb75bdf0dfd9c2ce0bdcff5779b49760d5
BLAKE2b-256 checksum
How to use checksums
7126596e73ad22ba5fc4a08c26cfa814cf98f1c352c047d9e320c6b045cdc61e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp34-cp34m-win32.whl

Download URL PyNaCl-1.1.1-cp34-cp34m-win32.whl
Size 132.2 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
82496bac8ffd54de42265196f9b85b3e9bcc3a4696727a63f49a355c77be1e05
BLAKE2b-256 checksum
How to use checksums
e61b2853edd2c500ccc8a0039b4ed3ca49e7c98c497024c4211d48d4625b7646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp34-cp34m-macosx_10_6_intel.whl

Download URL PyNaCl-1.1.1-cp34-cp34m-macosx_10_6_intel.whl
Size 178.8 kB
Tags CPython 3.4 CPython 3.4 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
30b0600371ee66e8f463307ef5b3d97558e6e7f45147759dddaabb1f15683aa1
BLAKE2b-256 checksum
How to use checksums
a6ac67b4eebe0e81859ebd826e1223522ed8d861726894dfd963ef7e22832689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp33-cp33m-win_amd64.whl

Download URL PyNaCl-1.1.1-cp33-cp33m-win_amd64.whl
Size 126.4 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
c983e779e15995df8ab4f5cf85d7c00e0d510f2133728367fa8dc1fb7c78bcaf
BLAKE2b-256 checksum
How to use checksums
939e197baa23c3e0dff4b950a51a4dd5dccb04d3ec90212676aceb6cdd328359
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp33-cp33m-win32.whl

Download URL PyNaCl-1.1.1-cp33-cp33m-win32.whl
Size 132.2 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
5e5a34cf8c8c781de0a7e8781eec60fd2b049e6c12d582010b165e26ffbc8922
BLAKE2b-256 checksum
How to use checksums
60bc3f47500d2a2d4f8896b6cac9684c2a0d5616edbb4919063f33a3f0331753
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp33-cp33m-macosx_10_6_intel.whl

Download URL PyNaCl-1.1.1-cp33-cp33m-macosx_10_6_intel.whl
Size 178.8 kB
Tags CPython 3.3 CPython 3.3 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
72f383eb79c993fdf5be2b0343bfbe5168bed56a934f0cee0da1f6d58f8104d3
BLAKE2b-256 checksum
How to use checksums
2b4dd2201955c239857b3a9e688231e35c44f0cda9b62a6fbb7863d4f20032ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp27-cp27m-win_amd64.whl

Download URL PyNaCl-1.1.1-cp27-cp27m-win_amd64.whl
Size 126.5 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
4890aa87f4970fd833b0612754164613a022da7e1ee856577bdb0a58155520b8
BLAKE2b-256 checksum
How to use checksums
37b8f12ff68da93beade9da6af8757d6ad62fcd174b59af87b1e0740d9c63e3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp27-cp27m-win32.whl

Download URL PyNaCl-1.1.1-cp27-cp27m-win32.whl
Size 132.2 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
702b4442b647906e1a7fc9c6d55b7e6f7f800acdea174ec4107498ab5bad3c68
BLAKE2b-256 checksum
How to use checksums
f0a953cb2bc4a8234e1485084f826cb9267d4068c00d180fa55a617256be62d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PyNaCl-1.1.1-cp27-cp27m-macosx_10_6_intel.whl

Download URL PyNaCl-1.1.1-cp27-cp27m-macosx_10_6_intel.whl
Size 178.7 kB
Tags CPython 2.7 CPython 2.7 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
7383fefa667b987123719935d26d68600bb739546303afebd66fe14cf7227ff6
BLAKE2b-256 checksum
How to use checksums
e9bde5ec69baea8810af69d42e061137bdbe613c4792da10fe476ed1f434e601
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.6.1

27 release files

1.6.0

27 release files

1.4.0

18 release files

1.3.0

21 release files

1.1.2

28 release files

This release

1.1.1 This release

16 release files

1.1.0

16 release files

1.0.1

16 release files

1.0

1 release file

0.3.0

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page