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.

29 questions
5
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
  • 18,516
  • 11
  • 84
  • 147
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
  • 937
  • 1
  • 14
  • 37
3
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
  • 18,516
  • 11
  • 84
  • 147
2
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
  • 47
  • 1
  • 6
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
  • 540
  • 1
  • 9
  • 28
1
vote
1 answer

PHP Version 7.3.17 on Amazon EC2 missing sodium?

When making call to sodium_crypto_pwhash_str I get the following in my Apache error log file. PHP Fatal error: Uncaught Error: Call to undefined function sodium_crypto_pwhash_str() My php version, as noted is 7.3.17 running on an Amazon EC2…
E.Bradford
  • 496
  • 3
  • 14
1
vote
1 answer

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
  • 492
  • 4
  • 11
1
vote
2 answers

Keep values in data frame= Na (sodium in chemistry) as is

Original df (clinical chemistry) Subject Code Test Value Units Flag 1 NA NA 147 mmol/L 2 NA/K NA/K 10.5 RATIO 3 K K 4.7 mmol/L 4 CK CK 235 UL ... Ideal df after cleaning Subject Code Test …
Edi
  • 31
  • 4
1
vote
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…
1
vote
2 answers

Libsodium JS KDF function produces different output

I've tried to use crypto_kdf_derive_from_key function on Android, iOS and JS. On Android and iOS it produces the same output but it doesn't on JS. The context, master key and the size are the same. Any ideas why? All platforms use the same core…
Dmitry Klimkin
  • 425
  • 3
  • 12
1
vote
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 and sodium is in the /ext/ folder and I've added extension=sodium to php.ini This is my code:
zugo123456789
  • 57
  • 1
  • 7
1
vote
2 answers

PHP and Sodium - Unable to pass a nonce publicly in a form

As the title suggest i am having difficulty in passing the value of a nonce publicly through a form. I have tried using both a hidden field in the form and passing the value as a parameter in the url. The nonce is created using: $nonce =…
noelmcg
  • 997
  • 3
  • 20
  • 42
1
vote
0 answers

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,640
  • 6
  • 26
  • 38
1
vote
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
  • 693
  • 2
  • 7
  • 17
0
votes
0 answers

Sodium not installing correctly on my local PHP 7.4

I'm using xampp and I'm trying to use sodium for encryption. I've search through so many threads - I've uncommented sodium in php.ini. I've tried installing it on my xampp command shell using pecl I get Notice: Trying to access array offset on value…
matt
  • 85
  • 7
1
2