pynacl
pynacl copied to clipboard
Python binding to the Networking and Cryptography (NaCl) library
Hi, I found the following non-deterministic ed25519 signature code in a deprecated library. ``` import ed25519 privKey, pubKey = ed25519.create_keypair() print("Private key (32 bytes):", privKey.to_ascii(encoding='hex')) print("Public key (32 bytes): ",...
### Use case: We have a signing keypair that has been generated by an other program in a different language, and we need to sign and verify messages with them....
``` Collecting pynacl Using cached https://files.pythonhosted.org/packages/61/ab/2ac6dea8489fa713e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz Installing build dependencies ... done Requirement already satisfied: six in /data/data/com.termux/files/usr/lib/python2.7/site-packages (from pynacl) (1.11.0) Requirement already satisfied: cffi>=1.4.1 in /data/data/com.termux/files/usr/lib/python2.7/site-packages (from pynacl) (1.11.5) Requirement...
Hi, in the changelog, since the 1.3.0 version, seems ed25519ph (ed25519 with pre-hashing) is supported. But no way to find it in the doc and code. Am I wrong? Thanks
I write a simple test to figure out the PrivateKey and SigningKey on version 1.5.0: import base64 import nacl.public import nacl.signing import nacl.utils seed = nacl.utils.random() sk = nacl.public.PrivateKey.from_seed(seed) sign_key...
This adds support for https://doc.libsodium.org/advanced/point-arithmetic/ristretto / https://ristretto.group/ I'll finish the docstrings and add documentation once the public interface is stable.
Currently, `SigningKey` must be initialized from a 32 byte seed. However, sometimes you already have the 64 byte Ed25519 private key, and not the seed. Then it's very inconvenient to...
change made in "stop using distutils (#727)" causing [2022-01-12T16:32:58.769Z] Collecting pynacl>=1.0.1 (from paramiko->-r ./requirements.txt (line 6)) [2022-01-12T16:32:59.024Z] Downloading https://repo.lab.pl.alcatel-lucent.com/api/pypi/python/packages/packages/a7/22/27582568be639dfe22ddb3902225f91f2f17ceff88ce80e4db396c8986da/PyNaCl-1.5.0.tar.gz (3.4MB) [2022-01-12T16:32:59.966Z] Complete output from command python setup.py egg_info: [2022-01-12T16:32:59.966Z] Traceback...
``` ==================================================================================== test session starts ==================================================================================== platform freebsd13 -- Python 3.8.12, pytest-4.6.11, py-1.9.0, pluggy-0.13.1 rootdir: /disk-samsung/freebsd-ports/security/py-pynacl/work-py38/PyNaCl-1.5.0 plugins: forked-1.0.2, cov-2.9.0, hypothesis-6.28.0, xdist-1.32.0, rerunfailures-10.1, timeout-1.4.2, mock-1.10.4 collected 4637 items / 1 errors...
https://github.com/pyca/pynacl/pull/709 src/nacl/bindings/crypto_generichash.py:14 ` from typing import NoReturn, TypeVar ` NoReturn was introduced in python 3.6.2, on 3.6.1 fails with: ` ImportError: cannot import name ‘NoReturn’ `