Questions tagged [pynacl]
49 questions
0
votes
0 answers
How to add PyNacl Dependency to AWS Lambda without using docker?
I've a python script which uses pynacl dependency and I'm not able to successfully import dependency on aws. I've tried creating layers and uploading zip file of dependencies but still I'm facing below errors.
Response
{
"errorMessage": "Unable to…
0
votes
0 answers
PyNaCl Is installed but my terminal says that PyNaCl Library needs to be installed
the piece of code this is about:
@bot.slash_command(name="join")
async def join(ctx):
channel = ctx.author.voice.channel
await channel.connect()
@bot.slash_command(name="leave")
async def leave(ctx):
await…

Rin
- 1
0
votes
1 answer
Unable To Run AzureML Experiment with SDK - Failed to Build Wheel for pynacl / Exit status:1
I am trying to run a AzureML Experiment using sdk (following a Udemy course). When I try to use the Experiment.submit function the experiment prepares and then fails with the following error messages:
ERROR: Command errored out with exit status 1…

Ben
- 71
- 7
0
votes
1 answer
How to use Python to save nacl SigningKey public and private keys as plain text?
I must be missing something in the nacl docs. How do I save both the private and public keys in plain text? The available encoders are Raw (binary?), Hex, Base16/32/64 and URLSafeBase64Encoder.
I thought I would just use the base64 library to…

SeaDude
- 3,725
- 6
- 31
- 68
0
votes
1 answer
PyNaCl library needed, imported, but still needed
I recently started making a Discord bot on Python, and I would like to create a music playing option, so I used the function "connect()" which require the library "PyNaCl", so I installed the library and I imported it on my Python program, but when…

Triplaqs
- 1
0
votes
0 answers
Finding corresponding PyNaCL functions in libsodium (C#)
I am using a python rest server (which I found here: https://github.com/xxblx/tornado-app-template) that supports access tokens and lets a client sign the access tokens.
The repository contains a python client that creates a SigningKey on the client…

ephtron
- 1,115
- 1
- 10
- 16
0
votes
0 answers
ERROR: Could not build wheels for PyNaCl, multidict, yarl which use PEP 517 and cannot be installed directly
When I try to install PyNaCl, it shows me the error:
ERROR: Could not build wheels for PyNaCl, multidict, yarl which use PEP 517 and cannot be installed directly
I'm trying to install it for a discord raid tool
0
votes
1 answer
PyNaCl building problems
So I'm trying to download discord's API into my venv with pip but it's failing to build PyNaCl. It says that the error is that the 'make' utility is missing from PATH but I just added it in my environment variables and tried running it on cmd to…

BlazedEnigma
- 1
- 1
- 1
0
votes
0 answers
Converting 45 byte shared key in pynacl to 32 byte key to use along with AES-CBC with 25 byte IV
I am currently working on pynacl library. The problem is I need to use the 45 byte shared key generated to be used to decrypt an AES-CBC encryption with an 25 byte IV. But the AES-CBC can only take 16/24/32 byte keys and 16 byte IV. Can anyone give…

user201537
- 15
- 2
0
votes
1 answer
I couldn't install discord.py
So I was running this command
py -3 -m pip install -U discord.py[voice]
in PyCharm (using latest version) but it couldn't let me install it. It gave me this exception:
ERROR: The 'make' utility is missing from PATH
ERROR: Failed building wheel for…

lilTapsa
- 1
0
votes
0 answers
Installed but still getting RuntimeError: PyNaCl library needed in order to use voice
@client.command()
async def join(ctx):
if ctx.message.author.voice:
channel = ctx.author.voice.channel
await channel.connect()
I've been working on a discord bot for practicing purposes and I've been stuck on getting it to join…

Fernando Flores
- 33
- 2
0
votes
2 answers
I can't connect my Discord Python BOT to a voice channel, why?
I've tried to connect my BOT to a voice channel to do a music BOT, but I don't know why, it doesn't work. Can you help me please ? I've already install PyNaCl, and it still doesn't working...
This is the code of the command :
@bot.command()
async…

Ecen
- 1
- 1
0
votes
0 answers
PyNaCl change nonce size
I'm using pynacl for encryption and decryption using X25519 keys and ChaCha20-Poly1305 message encryption from a server that uses NSec to a python client that uses PyNaCl.
I want to encrypt and decrypt using Box on the python side, which has a…

Yuri van Geffen
- 853
- 1
- 7
- 21
0
votes
0 answers
Converting an encrypted message to string
Here is my encrypted string:
b'pN\xe89\xd8\x83x\x9d\ts\xdb\x91\x87\xb4L\x1bU\xf2\x1fQqL\rz\x8d\xbb\xd0J\x99\xb7\xc0\x8a\x17n@\xdc\x16s\xfaf\x17\x00:\x0f\x86'
How do I convert this into a String that can be written to ConfigParser
later, read this…

yopines
- 49
- 5
0
votes
1 answer
Can libsodium's secret box be configured to use a cipher other than Salsa20?
I understand this question may seem better-suited for Crypto.SE or Security.SE; I'm asking it here because I'm specifically asking for help with the API rather than asking for technical or historic background.
I'm currently looking at integrating…

verandaguy
- 210
- 2
- 7