Skip to main content

PyNaCl

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.

Release files for PyNaCl 1.1.0

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.0
File Size Uploaded
PyNaCl-1.1.0.tar.gz 3.1 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for PyNaCl 1.1.0
File
PyNaCl-1.1.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
PyNaCl-1.1.0-cp36-cp36m-win32.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-32 Details
PyNaCl-1.1.0-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.0-cp35-cp35m-win_amd64.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-64 Details
PyNaCl-1.1.0-cp35-cp35m-win32.whl CPython 3.5 CPython 3.5 pymalloc Windows x86-32 Details
PyNaCl-1.1.0-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.0-cp34-cp34m-win_amd64.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-64 Details
PyNaCl-1.1.0-cp34-cp34m-win32.whl CPython 3.4 CPython 3.4 pymalloc Windows x86-32 Details
PyNaCl-1.1.0-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.0-cp33-cp33m-win_amd64.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-64 Details
PyNaCl-1.1.0-cp33-cp33m-win32.whl CPython 3.3 CPython 3.3 pymalloc Windows x86-32 Details
PyNaCl-1.1.0-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.0-cp27-cp27m-win_amd64.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-64 Details
PyNaCl-1.1.0-cp27-cp27m-win32.whl CPython 2.7 CPython 2.7 pymalloc Windows x86-32 Details
PyNaCl-1.1.0-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.0.tar.gz

Download URL PyNaCl-1.1.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
37f3c9cfd144b7f92d50e2dcdc02fbfc222f8faba0986bf71cffbba34c57cd10
BLAKE2b-256 checksum
How to use checksums
5556d213627a4c335c23c58d802108dba9caa49497598ec5815511e923786a7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-cp36-cp36m-win_amd64.whl
Size 128.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
cdce9631b27e06c7d1678103a8e75d03259271f886642e03434bdbf896ecbfe0
BLAKE2b-256 checksum
How to use checksums
ec7f396890ca8b34c5448490d1961105a0d1e176daa45b2b199e34cf1910c399
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
d4798748e90ecffdda757b18ed9cddea43be4a2503eb87eba91e86de0af3a91e
BLAKE2b-256 checksum
How to use checksums
a51987ac95d54aeb0593e0e768b40d346da74b86c82e051be10a0178102bd044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
066d590e018893a33f75711d13007b858c054ab46ff32db2654471193303ace8
BLAKE2b-256 checksum
How to use checksums
27c135c15cfb9c34d551429b54326e2eecbdec95b8f0016f04447adfe734142e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
319954533544286e10ba2ba4d400747da134d7ea445d12bcabce25a44f1ff3a5
BLAKE2b-256 checksum
How to use checksums
d1626b0ea9319347ae7678c631f0db1d0d98398fc55a4e887df81545c4a10d08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-cp35-cp35m-win32.whl
Size 132.1 kB
Tags CPython 3.5 CPython 3.5 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
bb383a68ca8e3c1014bc55149be9e7620d23cc54d2e73d291044034eb0efa617
BLAKE2b-256 checksum
How to use checksums
b2e51511ae840a7a4c481eeafea087df8835ed24431801ddcef5547eee70ec64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
a9e043e07f9373e2c2f2608fb7b7c31a0a9f17f67a0f928bb4f9f294fff56b01
BLAKE2b-256 checksum
How to use checksums
fe5cf16cb36f646520841eafc6985a9f8588056a4528fca68de021f6853e4187
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
0b48b9edd907c3a4b160b0decb281a0f96ced4cb7fc447ff2ccc2b32d4177dab
BLAKE2b-256 checksum
How to use checksums
0cfe6568178a4be8eac10e01ddac9f1a5302718b6fd5e895c201b3613d2c783e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-cp34-cp34m-win32.whl
Size 132.1 kB
Tags CPython 3.4 CPython 3.4 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
a3f550951edf0918458b37432430f874846d2a634c378e4e762a617533dc0c34
BLAKE2b-256 checksum
How to use checksums
8b4fc3d73a2add9eac9057b657786195cd76ead04f79a28c3a3ee14934928439
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
401d6ec12e44b938fdd068f0e37cdf6de46ac71c227a2cb0e78ceca6a47fd8d5
BLAKE2b-256 checksum
How to use checksums
4018d1cf2324cd9d227a7eb7b8c10679b432cbb1b8a05dc932d7772d0c35367f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
218d73d8cd30de561aaba7eacdc1da39688d3f2781e6ffde6c1251242842f444
BLAKE2b-256 checksum
How to use checksums
d479ec2cb738d4e69fcb6cbe2e7170c85e0c0085a260224c5a5b6f86113682a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-cp33-cp33m-win32.whl
Size 132.1 kB
Tags CPython 3.3 CPython 3.3 pymalloc Windows x86-32
SHA-256 checksum
How to use checksums
cb6474b53edd351389693b73dc448bd6e05f99ec01734a8ef0e59efd47c1f478
BLAKE2b-256 checksum
How to use checksums
4dbe8d8a24f8a229d8a9143fa2206530fa491caccf23a2b8a09b8ba850b4d185
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
c6c9d33151ef19b9a25cbd377612b690f1492283232e18f17640999c6af2d359
BLAKE2b-256 checksum
How to use checksums
36f1a0d995cca5351db704d15677cb818c9aec9ae1fceca45e918c52bc0fbce5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-cp27-cp27m-win_amd64.whl
Size 126.4 kB
Tags CPython 2.7 CPython 2.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
98db34cc084efb22db514d88397b2fc4e7a24209314e7c00d444d476c935a8fa
BLAKE2b-256 checksum
How to use checksums
d24474dbfb85e7209c75a67e081080005763955ab5b6aa0e34e9e2b2a699c3f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
a5b88573cf6011be16d0dfea08e50f13621204afa4c2321d276b4385da6de3ae
BLAKE2b-256 checksum
How to use checksums
ae554aa807f886d27d5828ca5f1b8687f9f08bdce98f7369758ff9ae1a56aad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL PyNaCl-1.1.0-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
f645265ba38991f1f1be8870246815d5bddded86a2dee35f04e843d636c937d1
BLAKE2b-256 checksum
How to use checksums
ad05e9f0a629c2481dad8cc421f09212c134ea592f69dd301139a2dcbd291b4c
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

1.1.1

16 release files

This release

1.1.0 This release

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