pyca/pynacl

Python binding to the Networking and Cryptography (NaCl) library

C

1,209

831 commits

updated Oct 5, 2026

See the code

README

===============================================
PyNaCl: Python binding to the libsodium library
===============================================

.. image:: https://img.shields.io/pypi/v/pynacl.svg
    :target: https://pypi.org/project/PyNaCl/
    :alt: Latest Version

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 3.8+ as well as
PyPy 3.

.. _libsodium: https://github.com/jedisct1/libsodium
.. _Networking and Cryptography library: https://nacl.cr.yp.to/

Features
--------

* Digital signatures
* Secret-key encryption
* Public-key encryption
* Hashing and message authentication
* Password based key derivation and password hashing

`Changelog`_
------------

.. _Changelog: https://pynacl.readthedocs.io/en/latest/changelog/

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

cryptography
libsodium
nacl
python

Significant stargazers

Andrew Kane

6,938 followers · starred Apr 2023

Seth Larson

934 followers · starred Jun 2020

Christian Heimes

585 followers · starred Aug 2013

Federico Gimenez

354 followers · starred Dec 2022

pyca/pynacl

Python binding to the Networking and Cryptography (NaCl) library

C

1,209

831 commits

updated Oct 5, 2026

See the code

README

===============================================
PyNaCl: Python binding to the libsodium library
===============================================

.. image:: https://img.shields.io/pypi/v/pynacl.svg
    :target: https://pypi.org/project/PyNaCl/
    :alt: Latest Version

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 3.8+ as well as
PyPy 3.

.. _libsodium: https://github.com/jedisct1/libsodium
.. _Networking and Cryptography library: https://nacl.cr.yp.to/

Features
--------

* Digital signatures
* Secret-key encryption
* Public-key encryption
* Hashing and message authentication
* Password based key derivation and password hashing

`Changelog`_
------------

.. _Changelog: https://pynacl.readthedocs.io/en/latest/changelog/

Not written in Markdown, so it's shown here as plain text — view it formatted on GitHub.

cryptography
libsodium
nacl
python

Significant stargazers

Andrew Kane

6,938 followers · starred Apr 2023

Seth Larson

934 followers · starred Jun 2020

Christian Heimes

585 followers · starred Aug 2013

Federico Gimenez

354 followers · starred Dec 2022