Questions tagged [libsodium]

Sodium is a portable, cross-compilable, installable, packageable fork of the NaCl Cryptography & Networking library, with a compatible API.

Sources & Resources:

322 questions
3
votes
1 answer

Building libzmq with libsodium

Edit as of ZMQ version 4.1: Configure automatically looks for libsodium, so this is no longer required. If for some reason you wish to build it WITHOUT libsodium and you have it built and installed, configure libzmq with '--without-libsodium'. So…
CommanderBubble
  • 333
  • 2
  • 9
3
votes
1 answer

unexpected e_machine: 3 in KaliumJNI for Android

I'm trying to use the libsodium crypto library (a portable version of NaCl (nacl.cr.yp.to)) on Android but I can't figure out how to properly compile/use the Kalium-JNI language binding. So far I successufully compiled libsodium as described on the…
user3332607
  • 31
  • 1
  • 2
2
votes
0 answers

Importing libsodium-wrappers in JEST throws the error "Cannot read properties of undefined (reading 'sodium')"

I'm importing libsodium-wrappers in JEST and it throws the error Cannot read properties of undefined (reading 'sodium') The code that throws the error is import _sodium from "libsodium-wrappers"; And the stack trace goes to this line (var t =…
2
votes
0 answers

Why PHP 8.1 Sodium PHP-Extension shows enabled but .iso file is not in extension folder

Why the php cli command "php -m" and also phpinfo() both show "sodium" php-extension as enabled / loaded, although there is no sodium.iso file in extension folder "/usr/lib/php/20210902" and no *.ini file of no SAPI's showing as enabling it…
Fakhar Anwar
  • 21
  • 1
  • 4
2
votes
1 answer

Cannot find module `libsodium-wrappers`

I'm running some of my tests and receive error Cannot find module libsodium-wrappers from src/crypto/hash.ts This is how I import this package import libsodium from 'libsodium-wrappers'; I've installed this package via yarn add…
2
votes
2 answers

How to create a GitHub repository secret /encrypt it using bash on Ubuntu?

I'm trying to create/update a GitHub secret using bash on Ubuntu. Their api docs say that I should get the public key from the repo encrypt the secret with it create/update the GitHub secret but examples are only in NodeJS & Python & I'm not sure…
2
votes
1 answer

AES-256-GCM unavailable in PHP ext-sodium on M1 Macbook

Recently at work we've had a new hire to work on a project of ours that utilizes AES-256-GCM encryption and decryption via PHP's sodium extension. Since we all use Macbooks, the new employee received a 2020 Macbook Pro with M1 chip. The first…
wblommaert
  • 123
  • 2
  • 9
2
votes
1 answer

fatal error: 'sodium/version.h' file not found white setting up libsodium-go

I was working with the Github API in order create a script to transfer secrets from Gitlab. While doing so I have been trying to setup the libsodium-go package to encrypt the secrets. Here is the link for reference…
2
votes
1 answer

Libsodium (Sodium) VS Bcrypt

I figured out Symfony 4.4 uses Libsodium (Sodium) as encoding method for passwords and falls back on Bcrypt when Sodium is not installed. Is Sodium better than Bcrypt? If so, why is it better? What is the difference?
Allart
  • 830
  • 11
  • 33
2
votes
1 answer

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.it: Updating package configuration --> npm…
Rofaeel Wagdy
  • 53
  • 1
  • 5
2
votes
0 answers

Building ZeroMQ on Windows 10 with Visual Studio and / or CMake fails

I am trying to set up a Co-simulation between Matlab / Simulink and an external application using the ZeroMQ library. The example I would like to build upon is described here. Therefore I need a compiled version (.dll) of the libzmq library's source…
CodeFuchs
  • 21
  • 1
  • 2
2
votes
0 answers

How can I Decrypt using libsodiumWrapper library using a public and a private key?

I am trying to decrypt a encrypted hash string using a public and a private key.As I am new to this sodium library I do not know much. I have tried every possible way .But I am getting error. I have tried converting it to Uint8Array but it didnt…
2
votes
2 answers

GitHub API secret encryption with libsodium in Node.js: UnhandledPromiseRejectionWarning: Error: bad public key size

I want to set a repository secret via the GitHub REST API. I use the example from the docs: const sodium = require('tweetsodium'); const key = "base64-encoded-public-key"; const value = "plain-text-secret"; // Convert the message and key to…
EliteRaceElephant
  • 7,744
  • 4
  • 47
  • 62
2
votes
0 answers

Undefined symbol: fstat in dynamic library

I'm writing a dynamic library that's loaded at runtime as a plugin. At runtime, the library fails to load with the following message: dlerror:/path/to/so: undefined symbol: fstat The dynamic library consists of a bunch of static libraries linked…
leecbaker
  • 3,611
  • 2
  • 35
  • 51
2
votes
0 answers

User authentication and password storage in R Shiny using sodium

I am implementing a log in page to a ShinyApp (I cannot use any paid features of Shiny Server Pro or anything like that) and came accross some sample code to do so on the following…
nd37255
  • 248
  • 1
  • 9