Questions tagged [libsodium]

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

Sources & Resources:

269 questions
18
votes
5 answers

How to encrypt data in php using Public/Private keys?

I have a small string of some data (less than 1kb) that I would like to have user agents pass to other sites when they are sent from my site. In order for the other sites to verify that I was the one that created the string I though of two…
Xeoncross
  • 50,836
  • 73
  • 238
  • 351
15
votes
2 answers

How do I correctly use libsodium so that it is compatible between versions?

I'm planning on storing a bunch of records in a file, where each record is then signed with libsodium. However, I would like future versions of my program to be able to check signatures the current version has made, and ideally vice-versa. For the…
Wander Nauta
  • 14,707
  • 1
  • 39
  • 59
13
votes
5 answers

How can I install PHP extension libsodium in Wampserver?

I am trying to install the Libsodium PHP extension using PECL, but I have no idea how to get the dll files needed. I want to use it with Wampserver on Windows 7 (64-bit). Can any one help me?
LearningToCode
  • 551
  • 1
  • 9
  • 21
10
votes
2 answers

How to encrypt / decrypt AES with Libsodium-PHP

I need to encrypt/decrypt data with PHP. I am completely new to this, however I have read that Libsodium-PHP is the best tool for AES encryption. Much like the other PHP encryption libraries I have researched Libsoduim-PHP seemed to offer almost no…
atlas81887
  • 145
  • 1
  • 1
  • 6
10
votes
1 answer

Build zeromq for iOS with libsodium, randombytes error

I'm building zeromq library for iOS using this method: https://github.com/drewcrawford/libzmq-ios The build log looks fine except of some warnings that appear 3 times: CC…
Wez Sie Tato
  • 1,148
  • 11
  • 33
10
votes
2 answers

How to include libsodium.net on ASP.NET

I have an old webservice build on ASP.NET (using .asmx) files. I need to use sodium.net - unfortunately it fails while loading the dependent libsodium.dll file. Any ideas about what I make wrong? I have added libsodium.net through NuGet. I have…
Jørn Wildt
  • 3,856
  • 18
  • 31
10
votes
1 answer

libsodium integration on android

I'm trying to integrate libsodium library on Android project. I'm using Android Studio (0.5.8) with gradle (0.9) and android build tools (19.1). I compiled libsodium with scripts that can be found in the library. I get four preBuild libs (.so files)…
Albert
  • 111
  • 6
9
votes
3 answers

Error while installing libsodium in PHP 7.1

I'm in PHP 7.1.25 and mcrypt is the current extension used and mcrypt will be deprecated in PHP 7.2 and Libsodium will be added to the core extensions in PHP 7.2 Now I would need to try installing libsodium in PHP 7.1 and see how it works, Followed…
VenkateshLB
  • 93
  • 1
  • 3
9
votes
2 answers

Libsodium-net - Unable to load DLL 'libsodium.dll

I installed Libsodium-net through NuGet and am able to include Sodium in my classes, but when I try to run it, I get An exception of type 'System.DllNotFoundException' occurred in Sodium.dll but was not handled in user code Additional information:…
Question
  • 143
  • 1
  • 11
9
votes
2 answers

How to use nonces in asymmetric encryption (libsodium)?

I am writing an app where users can communicate between devices with end to end encryption. For this I use the libsodium encryption library. The asymmetric encryption function, crypto_box(...) requires a nonce as one of the arguments. I am a bit…
joakimb
  • 543
  • 7
  • 19
8
votes
1 answer

Which libsodium .NET wrapper to use when building cross platform apps using Xamarin in Visual Studio?

I am very interested in mobile app development using Xamarin. To provide secure communication I would like to use NaCl or more specific: libsodium. On the libsodium website it says that there are three options to use libsodium with C#:…
Nightfighter001
  • 460
  • 9
  • 22
8
votes
1 answer

Library failure when installing Libsodium (Amazon EC2)

I can't figure out how to get Libsodium up and running on my EC2 instance. When attempting to check if the installation was successful with: php7 --info | grep sodium I get the following warning: PHP Warning: PHP Startup: Invalid library (maybe…
Fyntasia
  • 1,083
  • 5
  • 18
8
votes
1 answer

android eclipse jedisct1/libsodium where to start

I have a program that needs to execute a libsodium encryption. I found this library libsodium but I think it needs to be used with NDK. And so I started to read tutorials about NDK but I still don't know where to start on using this library. If…
junmats
  • 1,816
  • 1
  • 21
  • 36
7
votes
0 answers

ZeroMQ doesn't spot libsodium

I'm hoping to get the CurveCP functionality working within ZeroMQ ØMQ. I'm using CentOS as the underlying OS. After downloading and running ZeroMQ, I've done the usual ./configure, make and sudo make install. Then running make check returned…
Chrisky
  • 547
  • 3
  • 9
6
votes
3 answers

Unable to load dynamic library 'php_libsodium'

I'm trying to install the libsodium php extension (https://pecl.php.net/package/libsodium/1.0.6/windows). When I run php -m, libsodium shows up in the list. However, when I go to phpinfo, it is not listed. I also noticed that apache is giving me…
ChrCar627
  • 63
  • 1
  • 3
1
2 3
17 18