Questions tagged [pynacl]

49 questions
1
vote
2 answers

I am trying to code a discord music bot and came with this problem

my problem are the packages are the tags one enter image description here the main.py code from discord.ext import commands import music cogs = [music] client = commands.Bot(command_prefix='sus!', intents = discord.Intents.all()) for i in…
Neko Mugs
  • 11
  • 1
1
vote
4 answers

Cannot install erdpy on macOS - failed building wheel for pynacl

I'm trying to install erdpy on a macOS by following the official guide, I successfully managed to download erdpy-up and when I run it, I receive the following error: File…
Mircea
  • 187
  • 6
1
vote
0 answers

PyNaCl doesn't want to install during PyGithub instalation(wheel building doesn't finish)

I have already tried: running the command as sudo (as you can see) downgrading pip installing make and other build-essential installing pynacl alone installing it without using PEP 517 (it didn't install, just output an error that it needs PEP…
bartx 3
  • 41
  • 5
1
vote
0 answers

Exception: ERROR: The 'make' utility is missing from PATH

I am having an error when trying to install a package from pip called DiscordUtils Exception: ERROR: The 'make' utility is missing from PATH and ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly
1
vote
1 answer

i import PyNaCl, but whenever i upgrade python to a newer version, it is being removed ( Python )

i am using Repl.it and i am having trouble using PyNaCl in Python. i firstly install the package. pip install PyNaCl then i import it. import nacl PyNaCl works properly and i have no problem with that but whenever there is a newer version, and i…
Cengiz
  • 36
  • 4
1
vote
0 answers

pynacl crypto_core_hsalsa20 for nuki smartlock 2.0

I need the crypto_core_hsalsa20 function to greate an secret key for my NUKI. Both sides calculate DH Key k using function dh1 a. Key 0DE40B998E0E330376F2D2FC4892A6931E25055FD09F054F99E93FECD9BA611E 8. Both sides derive a long term shared secret…
DanielRadl
  • 101
  • 5
1
vote
1 answer

Generate 33 bytes public key for curve25519 in python

Using Java's spongycastle, i am able to generate curve25519 private keys(32 bytes) and public keys(33 bytes). Similarly for Python, i am using Nacl library for curve25519 but here public key generated is of 32 bytes only. The one byte of y…
1
vote
3 answers

ModuleNotFoundError: No module named error python 3.8.2

8.2 When I install a new module with pip install PyNaCl it says it downloaded successfully, then I check with pip list and its there and when I run my python code I get "No Module Named "PyNaCl" error. It's not from the module because I tried with…
Bozho
  • 41
  • 1
  • 2
  • 7
1
vote
0 answers

PyNaCl is needed but it is already installed, how to solve?

I'm creating a discord bot and I want to get voice channel of a user. I need to get the voice channel because I want the bot connect to the channel of the user. I tried this: @bot.command() async def join(ctx): VoiceChannel =…
1
vote
1 answer

64 bytes keys in PyNaCl

Is there a way to use 64 bytes keys in PyNaCl? I am working with the signature functions in PyNaCl. Where I can sign messages and verify them using asymmetric cryptography. As far as I know the basic implementation of signing uses 32 bytes…
kummerer94
  • 171
  • 10
1
vote
1 answer

Using pynacl to encrypt with one file and decrypt with a second file

I have some code that I wrote below with Python 2.7 and uses pynacl, running on a mac os x. It currently works as written below and it will encrypt the password and then decrypt it later. I want to know if there is away where the last few lines that…
user5578188
  • 63
  • 1
  • 8
1
vote
0 answers

Python cffi error when trying to install PyNaCl

I'm trying to install discord.py on my raspberry which is running a fedora server, however I run into an issue when trying to install PyNaCl. Pip throws an error I frankly cannot understand at all Using cached…
Waddle D.
  • 11
  • 3
1
vote
1 answer

How to load SigningKey from its value in pyNaCl?

I need to generate signing and private keys in pyNaCl and store them somewhere. After that, I need to make it possible to load them from a string. This is a code that generates new SigningKey and public key. def gen_keys(): global sk sk =…
Catgirl21
  • 37
  • 10
1
vote
1 answer

How to use the PyNaCl secret key generated as environnement variable

I am generating secret key using PyNaCl: nacl.utils.random(nacl.secret.SecretBox.KEY_SIZE) The keys look like: b'\xa5\x8bL\xc4\xc0\xe6\xe3\xe5#\xb4{)\xd7uO(\xb11\x85\x88N\xfd\xf6>\nC\xb5\x95\\\xf1\x8b\xe8' They are 32 bytes long and must stay 32…
mel
  • 2,730
  • 8
  • 35
  • 70
0
votes
2 answers

Solana, verify a signature with python

I'm trying to authenticate users via the phantom wallet but I cannot verify the signature on the backend. Here's my frontend code: const response = await solana.connect(); console.log("wallet account ",…
Nika110
  • 29
  • 7