Debian Codegraph @

src/PyNaCl.egg-info/PKG-INFO

raw
1 Metadata-Version: 2.4
2 Name: PyNaCl
3 Version: 1.6.2
4 Summary: Python binding to the Networking and Cryptography (NaCl) library
5 Home-page: https://github.com/pyca/pynacl/
6 Author-email: The PyNaCl developers <[email protected]>
7 License: Apache-2.0
8 Project-URL: Homepage, https://github.com/pyca/pynacl
9 Project-URL: Bug Tracker, https://github.com/pyca/pynacl/issues
10 Project-URL: Documentation, https://pynacl.readthedocs.io
11 Classifier: License :: OSI Approved :: Apache Software License
12 Classifier: Programming Language :: Python :: Implementation :: CPython
13 Classifier: Programming Language :: Python :: Implementation :: PyPy
14 Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
15 Classifier: Programming Language :: Python :: 3
16 Classifier: Programming Language :: Python :: 3.8
17 Classifier: Programming Language :: Python :: 3.9
18 Classifier: Programming Language :: Python :: 3.10
19 Classifier: Programming Language :: Python :: 3.11
20 Classifier: Programming Language :: Python :: 3.12
21 Classifier: Programming Language :: Python :: 3.13
22 Classifier: Programming Language :: Python :: 3.14
23 Requires-Python: >=3.8
24 License-File: LICENSE
25 License-File: licenses/LICENSE.libsodium.txt
26 Requires-Dist: cffi>=1.4.1; platform_python_implementation != "PyPy" and python_version < "3.9"
27 Requires-Dist: cffi>=2.0.0; platform_python_implementation != "PyPy" and python_version >= "3.9"
28 Provides-Extra: tests
29 Requires-Dist: pytest>=7.4.0; extra == "tests"
30 Requires-Dist: pytest-cov>=2.10.1; extra == "tests"
31 Requires-Dist: pytest-xdist>=3.5.0; extra == "tests"
32 Requires-Dist: hypothesis>=3.27.0; extra == "tests"
33 Provides-Extra: docs
34 Requires-Dist: sphinx<7; extra == "docs"
35 Requires-Dist: sphinx_rtd_theme; extra == "docs"
36 Dynamic: description
37 Dynamic: home-page
38 Dynamic: license-file
39
40 ===============================================
41 PyNaCl: Python binding to the libsodium library
42 ===============================================
43
44 .. image:: https://img.shields.io/pypi/v/pynacl.svg
45 :target: https://pypi.org/project/PyNaCl/
46 :alt: Latest Version
47
48 PyNaCl is a Python binding to `libsodium`_, which is a fork of the
49 `Networking and Cryptography library`_. These libraries have a stated goal of
50 improving usability, security and speed. It supports Python 3.8+ as well as
51 PyPy 3.
52
53 .. _libsodium: https://github.com/jedisct1/libsodium
54 .. _Networking and Cryptography library: https://nacl.cr.yp.to/
55
56 Features
57 --------
58
59 * Digital signatures
60 * Secret-key encryption
61 * Public-key encryption
62 * Hashing and message authentication
63 * Password based key derivation and password hashing
64
65 `Changelog`_
66 ------------
67
68 .. _Changelog: https://pynacl.readthedocs.io/en/latest/changelog/
69
70 Installation
71 ============
72
73 Binary wheel install
74 --------------------
75
76 PyNaCl ships as a binary wheel on macOS, Windows and Linux ``manylinux1`` [#many]_ ,
77 so all dependencies are included. Make sure you have an up-to-date pip
78 and run:
79
80 .. code-block:: console
81
82 $ pip install pynacl
83
84 Faster wheel build
85 ------------------
86
87 You can define the environment variable ``LIBSODIUM_MAKE_ARGS`` to pass arguments to ``make``
88 and enable `parallelization`_:
89
90 .. code-block:: console
91
92 $ LIBSODIUM_MAKE_ARGS=-j4 pip install pynacl
93
94 Linux source build
95 ------------------
96
97 PyNaCl relies on `libsodium`_, a portable C library. A copy is bundled
98 with PyNaCl so to install you can run:
99
100 .. code-block:: console
101
102 $ pip install pynacl
103
104 If you'd prefer to use the version of ``libsodium`` provided by your
105 distribution, you can disable the bundled copy during install by running:
106
107 .. code-block:: console
108
109 $ SODIUM_INSTALL=system pip install pynacl
110
111 .. warning:: Usage of the legacy ``easy_install`` command provided by setuptools
112 is generally discouraged, and is completely unsupported in PyNaCl's case.
113
114 .. _parallelization: https://www.gnu.org/software/make/manual/html_node/Parallel.html
115
116 .. _libsodium: https://github.com/jedisct1/libsodium
117
118 .. [#many] `manylinux1 wheels <https://www.python.org/dev/peps/pep-0513/>`_
119 are built on a baseline linux environment based on Centos 5.11
120 and should work on most x86 and x86_64 glibc based linux environments.
121
122 GNU Make (gmake) may be required for newer versions of PyNaCl. You can
123 set the binary to use by setting the ``MAKE`` environment variable:
124
125 .. code-block:: console
126
127 $ MAKE=gmake pip install pynacl
128
129 Changelog
130 =========
131
132 1.6.2 (2026-01-01)
133 ------------------
134 * Updated ``libsodium`` to 1.0.20-stable (2025-12-31 build) to resolve
135 ``CVE-2025-69277``.
136
137 1.6.1 (2025-11-10)
138 ------------------
139 * The ``MAKE`` environment variable can now be used to specify the ``make``
140 binary that should be used in the build process.
141
142 1.6.0 (2025-09-11)
143 ------------------
144 * **BACKWARDS INCOMPATIBLE:** Removed support for Python 3.6 and 3.7.
145 * Added support for the low level AEAD AES bindings.
146 * Added support for ``crypto_core_ed25519_from_uniform``.
147 * Update ``libsodium`` to 1.0.20-stable (2025-08-27 build).
148 * Added support for free-threaded Python 3.14.
149 * Added support for Windows on ARM wheels.
150
151 1.5.0 (2022-01-07)
152 ------------------
153
154 * **BACKWARDS INCOMPATIBLE:** Removed support for Python 2.7 and Python 3.5.
155 * **BACKWARDS INCOMPATIBLE:** We no longer distribute ``manylinux1``
156 wheels.
157 * Added ``manylinux2014``, ``manylinux_2_24``, ``musllinux``, and macOS
158 ``universal2`` wheels (the latter supports macOS ``arm64``).
159 * Update ``libsodium`` to 1.0.18-stable (July 25, 2021 release).
160 * Add inline type hints.
161
162 1.4.0 (2020-05-25)
163 ------------------
164
165 * Update ``libsodium`` to 1.0.18.
166 * **BACKWARDS INCOMPATIBLE:** We no longer distribute 32-bit ``manylinux1``
167 wheels. Continuing to produce them was a maintenance burden.
168 * Added support for Python 3.8, and removed support for Python 3.4.
169 * Add low level bindings for extracting the seed and the public key
170 from crypto_sign_ed25519 secret key
171 * Add low level bindings for deterministic random generation.
172 * Add ``wheel`` and ``setuptools`` setup_requirements in ``setup.py`` (#485)
173 * Fix checks on very slow builders (#481, #495)
174 * Add low-level bindings to ed25519 arithmetic functions
175 * Update low-level blake2b state implementation
176 * Fix wrong short-input behavior of SealedBox.decrypt() (#517)
177 * Raise CryptPrefixError exception instead of InvalidkeyError when trying
178 to check a password against a verifier stored in a unknown format (#519)
179 * Add support for minimal builds of libsodium. Trying to call functions
180 not available in a minimal build will raise an UnavailableError
181 exception. To compile a minimal build of the bundled libsodium, set
182 the SODIUM_INSTALL_MINIMAL environment variable to any non-empty
183 string (e.g. ``SODIUM_INSTALL_MINIMAL=1``) for setup.
184
185 1.3.0 2018-09-26
186 ----------------
187
188 * Added support for Python 3.7.
189 * Update ``libsodium`` to 1.0.16.
190 * Run and test all code examples in PyNaCl docs through sphinx's
191 doctest builder.
192 * Add low-level bindings for chacha20-poly1305 AEAD constructions.
193 * Add low-level bindings for the chacha20-poly1305 secretstream constructions.
194 * Add low-level bindings for ed25519ph pre-hashed signing construction.
195 * Add low-level bindings for constant-time increment and addition
196 on fixed-precision big integers represented as little-endian
197 byte sequences.
198 * Add low-level bindings for the ISO/IEC 7816-4 compatible padding API.
199 * Add low-level bindings for libsodium's crypto_kx... key exchange
200 construction.
201 * Set hypothesis deadline to None in tests/test_pwhash.py to avoid
202 incorrect test failures on slower processor architectures. GitHub
203 issue #370
204
205 1.2.1 - 2017-12-04
206 ------------------
207
208 * Update hypothesis minimum allowed version.
209 * Infrastructure: add proper configuration for readthedocs builder
210 runtime environment.
211
212 1.2.0 - 2017-11-01
213 ------------------
214
215 * Update ``libsodium`` to 1.0.15.
216 * Infrastructure: add jenkins support for automatic build of
217 ``manylinux1`` binary wheels
218 * Added support for ``SealedBox`` construction.
219 * Added support for ``argon2i`` and ``argon2id`` password hashing constructs
220 and restructured high-level password hashing implementation to expose
221 the same interface for all hashers.
222 * Added support for 128 bit ``siphashx24`` variant of ``siphash24``.
223 * Added support for ``from_seed`` APIs for X25519 key pair generation.
224 * Dropped support for Python 3.3.
225
226 1.1.2 - 2017-03-31
227 ------------------
228
229 * reorder link time library search path when using bundled
230 libsodium
231
232 1.1.1 - 2017-03-15
233 ------------------
234
235 * Fixed a circular import bug in ``nacl.utils``.
236
237 1.1.0 - 2017-03-14
238 ------------------
239
240 * Dropped support for Python 2.6.
241 * Added ``shared_key()`` method on ``Box``.
242 * You can now pass ``None`` to ``nonce`` when encrypting with ``Box`` or
243 ``SecretBox`` and it will automatically generate a random nonce.
244 * Added support for ``siphash24``.
245 * Added support for ``blake2b``.
246 * Added support for ``scrypt``.
247 * Update ``libsodium`` to 1.0.11.
248 * Default to the bundled ``libsodium`` when compiling.
249 * All raised exceptions are defined mixing-in
250 ``nacl.exceptions.CryptoError``
251
252 1.0.1 - 2016-01-24
253 ------------------
254
255 * Fix an issue with absolute paths that prevented the creation of wheels.
256
257 1.0 - 2016-01-23
258 ----------------
259
260 * PyNaCl has been ported to use the new APIs available in cffi 1.0+.
261 Due to this change we no longer support PyPy releases older than 2.6.
262 * Python 3.2 support has been dropped.
263 * Functions to convert between Ed25519 and Curve25519 keys have been added.
264
265 0.3.0 - 2015-03-04
266 ------------------
267
268 * The low-level API (`nacl.c.*`) has been changed to match the
269 upstream NaCl C/C++ conventions (as well as those of other NaCl bindings).
270 The order of arguments and return values has changed significantly. To
271 avoid silent failures, `nacl.c` has been removed, and replaced with
272 `nacl.bindings` (with the new argument ordering). If you have code which
273 calls these functions (e.g. `nacl.c.crypto_box_keypair()`), you must review
274 the new docstrings and update your code/imports to match the new
275 conventions.