Questions tagged [pynacl]
49 questions
6
votes
1 answer
import paramiko throws '_sodium' has no function error
Importing paramiko throws following exception on Python3.
Traceback (most recent call last):
File "requirements_check.py", line 117, in
import paramiko
File "/usr/local/lib/python3.5/dist-packages/paramiko/__init__.py", line 22,…

jeffry copps
- 305
- 5
- 22
5
votes
0 answers
databricks-connect cannot load module in udf
I'm trying to load PyNaCl into a pyspark UDF running on Windows.
from nacl import bindings as c
def verify_signature(msg, keys):
c.crypto_sign_ed25519ph_update(...)
...
verify_signature_udf = udf(lambda x: verify_signature(x, public_keys),…

HeyMan
- 1,529
- 18
- 32
3
votes
1 answer
Does PyNaCl release GIL and should it be used with multithreading
Does PyNaCl release the Global Interpreter Lock? Will it be suitable to use multithreading for encryption using PyNaCl's SecretBox?
I want to encrypt relatively large amounts of data (~500 MB) using PyNaCl. For this, I divide it into chunks of…

kush
- 154
- 1
- 12
3
votes
0 answers
Installation of robotframework-sshlibrary within docker image based on alpine
I'm trying to build a docker image with robotframework-sshlibrary based on alpine and I got a mysterious error message:
config.status: executing libtool commands
make: /bin/sh: Operation not permitted
make: ** [Makefile:514: all-recurcive] Error…

Tristan
- 31
- 1
3
votes
4 answers
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
Im using the latest Version of Pycharm:
When i Enter this command: pip install -U discord.py[voice]
This Error Message will come: ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
What should i do?

Joel_1930
- 33
- 1
- 1
- 6
3
votes
1 answer
Build Dockerfile get error as Failed building wheel for pynacl
I tried to build Dockerfile but got some error like this:
Failed building wheel for pynacl
This is my setup.py file look like
FROM python:3.6-alpine
WORKDIR /app …

Amitjoc
- 83
- 4
- 9
2
votes
1 answer
Sign a text with pynacl (Ed25519) importing a private key
In the code below I try to sign a nonce using pynacl.
from nacl.encoding import Base64Encoder
from nacl.signing import SigningKey
import base58
import base64
secret = '5N3SxG4UzVDpNe4LyDoZyb6bSgE9tk3pE2XP5znXo5bF'
nonce =…

sandevins
- 23
- 4
2
votes
1 answer
Encrypt in tweet-nacl (javascript) and decrypt in python
This question is the inverse of the existing one here:
Encrypt in python 3.7 and decode in NODEJS 12 .
I would prefer to use the exact equivalent of tweet-nacl on python but that project says it is old and not recommended…

WestCoastProjects
- 58,982
- 91
- 316
- 560
2
votes
1 answer
How to use ssh-keygen ed25519 keys for encryption in Python?
I spent about 2 days trying to accomplish this and had googled information regarding packages such as cryptography, PyNaCl and paramiko.

LJHW
- 355
- 3
- 15
2
votes
1 answer
Can I use pyNaCl sealed boxes with an existing openssh key pair?
I'm trying to use PyNacl to do asymetric encryption (public and private ssh key pairs) to safely transmit data.
I'm using an existing key pair generated with ssh-keygen -t ed25519 in the openssh format. (more details on my code below)
The question…

Aurelien_mi
- 21
- 3
2
votes
1 answer
How do I do encryption/decryption without generating keypairs again?
I have been working on a project myself and using this website's codes as a guide. Is there any way, I can put the generation of keys into 1 file and encryption/decryption into another. How do I define bob_box without having to generate another pair…

meh
- 53
- 1
- 7
1
vote
0 answers
pynacl module installed but not found
Edit: Found a fix (see at the bottom)
So my problem is very similar to this one I cant import pynacl module. (discrod.py - ModuleNotFoundError: No module named 'pynacl')
In fact I encountered exactly the same thing basically, now the thing is,…

Serenilink
- 11
- 2
1
vote
3 answers
Simple discord.py mp3 bot not playing music
Discord bot dosent play anykind of music, neither mine nor other bots codes work he just dosent play music. idk maybe i am just stupid BUT IT DOSENT WORK WHY
import discord
import time
import os
from discord.ext import commands
BOT_TOKEN = "" # put…

Lukas Nesvarbu
- 11
- 3
1
vote
1 answer
How to verify with Python (PyNaCl) a message signed by Solana wallet adapter (javascript)
I have signed a message using Solana's wallet adapter example:
import { useWallet } from '@solana/wallet-adapter-react';
import bs58 from 'bs58';
import React, { FC, useCallback } from 'react';
import { sign } from 'tweetnacl';
export const…

Ander
- 5,093
- 7
- 41
- 70
1
vote
0 answers
Signing a payload which is already hashed in pynacl
I am switching an application from Python cryptography.io library to pynacl.
The application currently calculates digests of the data, then has the crypto libraries sign the digest.
But pynacl's signing code always requires the full data to be…

Brad
- 11,262
- 8
- 55
- 74