42 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
154
views
Node.js Docker container crashes: Error: Cannot find addon '.' imported from sodium-native
I’m trying to run my Node.js app inside Docker on intel macbook, but it crashes at startup with the following error:
Error: Cannot find addon ‘.’ imported from ‘file:///app/node_modules/sodium-native/...
-1
votes
1
answer
99
views
Unable to load dynamic library 'sodium'
Ubuntu 22.04 up to date
PHP8.2
I get this Warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'sodium' (tried: /usr/lib/php/20190902/sodium (/usr/lib/php/20190902/sodium: cannot open ...
-3
votes
1
answer
2k
views
Golang no packages found for open file sodium
I'm trying to use sodium library in golang, module github.com/jamesruan/sodium.
After imported it I added it to go.work file, otherwise nothing works and I really can't understand why.
go.work:
go 1....
0
votes
0
answers
147
views
sodium_crypto_pwhash gives a different result in PHP and in node.js
I'm trying to encrypt a string on the front-end (node.js electron) and trying to decrypt it on the back-end (PHP) using sodium (I've tried libsodium-wrappers and sodium-plus).
Everything looks good on ...
1
vote
1
answer
58
views
Is it easy to retrieve message and encryption key from several encryptions of the same message?
Let's suppose the following context in php:
A string: $string= "my beautiful and unique string"
An encoding key: $key= "mybinaryencodingkey"
Encryption of the string several times,...
1
vote
0
answers
535
views
Decrypt ChaCha20-Poly1305 (8 Byte Nonce) in Dart
Poly1305 encrypted UDP-Stream from a web server with a 8 Byte Nonce. Is there a way to decrypt this in dart?
I tried these packages:
sodium_libs (accepted only XChaCha20-Poly1305-IETF / 24 Byte Nonce)
...
3
votes
2
answers
3k
views
php-sodium on Amazon Linux 2023
php-sodium is absent on Amazon Linux 2023 and can't be easily installed. So I'll put the solution here as an answer.
Expected to install php-sodium/libsodium on Amazon Linux 2023, but there is no the ...
0
votes
1
answer
2k
views
Random password generator + algorithm
I'm currently developing a CLI password generator and I've been trying to come up with ways of randomizing characters between a defined set of chars. I know the srand(time(NULL)) method, but as far as ...
-1
votes
1
answer
2k
views
SodiumException secretkey should be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes
Trying to generate the secret key from the keypair and I get the exception:
SodiumException secretkey should be SODIUM_CRYPTO_SIGN_SECRETKEYBYTES bytes
See my code below
if(file_exists($keypair)) {
...
0
votes
1
answer
1k
views
How to get private key (in the right format) with sodium-plus js (secretbox) from html page for decrypting a message
I can do that : Encrypt on frontend (sodium-plus.js) with public-key from backend (PHP sodium)
But I want to do the contrary (encrypt with php, decrypt with javascript), and I have an issue.
I can get ...
1
vote
2
answers
7k
views
Missing sodium extension - wampserver
I'm using wampserver 3.2.5 , trying to install package need sodium extension
i turned it and checked php.ini it not commented and then restarted all service Soduim extension
But i still have this ...
0
votes
2
answers
3k
views
Can't install node-sodium on Windows
I am trying to program a Discord Bot that plays music from Youtube. I chose Sodium as the encryption package, but I'm having difficulties when it comes to installing it.
I tried setting my VS version ...
0
votes
2
answers
612
views
Error Logging Into Magento 2: Open Source admin panel
SO I followed instructions here:
https://www.thecoachsmb.com/6-steps-to-install-magento2-4-2-on-xampp-windows-using-composer/
to install Magento 2 into a fresh install of xammppv3.3.0 running Php7. ...
1
vote
1
answer
2k
views
When trying to use npm install I get a "msvsVersion is not defined" error on a discord bot
I've been trying to self-host a TypeScript discord bot, but the setup process has been nothing but confusing. I think it's supposed to create a build directory with an index.js file, but I'm not sure. ...
3
votes
1
answer
4k
views
why does node-sodium package is not working
Here I'm using node for making a discord bot, but there is a problem in the packages I think
Also, sodium is not found in the node_modules directory (folder)
tried many ways but nothing work :(
Repl....