Questions tagged [sodium]

Sodium is a Functional Reactive Programming (FRP) Library for Java, Haskell, C++, C# and Scala.

Sodium is a library based on Flapjax, Yampa, scala.React and a number of other Functional Reactive Programming efforts.

39 questions
6
votes
2 answers

What is Elm's Signal's (Conal's Behaviors's) equivalent in RX ? Does RX have such a concept at all?

I was watching this video (see image below) and it made me wonder whether Elm's Signal is the same as Conal's Behaviour. I think they are the same but I am not 100% sure. Are they the same? Here are a few related questions: 1) What is a Elm's…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
5
votes
2 answers

Problem installing Sodium package in R on an Ubuntu system

I am trying to install a package called sodium in R on an Ubuntu system but I'm getting an error message like the following: install.packages("sodium", dependencies = T) ... * installing *source* package ‘sodium’ ... ** package ‘sodium’…
johnny
  • 571
  • 4
  • 14
5
votes
1 answer

PHP Sodium not installed?

I'm trying to use Libsodium for the first time to for encryption, but I've encountered an error. I'm running everything on XAMPP; sodium is in the /ext/ folder and I've added extension=sodium to the php.ini file. This is my code. // This refers to…
zugo123456789
  • 97
  • 1
  • 1
  • 7
5
votes
1 answer

What does dollar sign mean in generated variable names during debugging Java in InteliJ IDEA ? Is it a closure?

What does dollar sign mean in variable names during debugging Java in InteliJ ? Is it a closure ? Please see the image and code snippet below. Here is part of the Stream class: public final Listener listen(final Handler action) { return…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
3
votes
2 answers

Encrypt on frontend (sodium-plus.js) with public-key from backend (PHP sodium)

I would like to achieve an anonymous public-key encryption in a web browser using sodium-plus.js with keys generated in PHP sodium like this: $keyPair = sodium_crypto_box_keypair(); $privateKey = sodium_crypto_box_secretkey($keyPair); $publicKey =…
lesDev
  • 77
  • 1
  • 8
3
votes
2 answers

Is there a way to use Sodium Encrypt without the random nonce in PHP?

I am doing some experimentation with the new library "Libsodium". Based on the https://www.zimuel.it/slides/zendcon2018/sodium#/21 slide. In this slide there is an example show about encryption and decryption with sodium. $msg = 'This is a super…
Johan de Klijn
  • 155
  • 3
  • 10
3
votes
1 answer

Call to undefined function sodium_randombytes_buf()

Hello I want to use the sodium_randombytes_buf function on a project that I'm working on. On my machine (docker image) I have installed php 7.2 PHP 7.2.9 (cli) (built: Aug 26 2018 05:23:42) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine…
George Panayi
  • 1,768
  • 6
  • 26
  • 42
3
votes
1 answer

libsodium compatibility PHP vs Javascript

I have a PHP code that uses the RSA encryption via libsodium (sodium_compat) library. My script is as below: //https://packagist.org/packages/paragonie/sodium_compat //composer require paragonie/sodium_compat require_once…
oussama kamal
  • 1,027
  • 2
  • 20
  • 44
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

Swift-Sodium: Scalar Multiplication

I am using SwiftSodium(https://github.com/jedisct1/swift-sodium) for encryption process in my project. I need to perform scalar multiplication of public and private key. ScarMultiplication wrapper class was available in libsodium .net version but…
GJDK
  • 723
  • 2
  • 7
  • 19
2
votes
1 answer

How can I include correctly in Visual Studio?

I read section Compilation on Windows in installation page but I still very confused, I hope some experts can enlighten me. I downloaded LATEST.tar.gz from here. After that, I copied sodium.h and sodium folder in…
wei
  • 937
  • 2
  • 14
  • 34
1
vote
1 answer

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, for example in a php function like this: $encrypted_1 =…
1
vote
0 answers

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) pointycastle (accepted only…
Takrem
  • 41
  • 6
1
vote
1 answer

php-sodium on Amazon Linux 2023

php-sodium is absent on Amazon Linux 2023 and can't be easilly 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 simple way, because amazon-linux-extras not…
1
vote
1 answer

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. I've installed Visual Studio Build Tools 2017…
Aeon
  • 13
  • 4
1
2 3