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
0
votes
2 answers

Trouble Installing libsodium on Centos 6

I'm running CENTOS 6.7 and Apache and PHP 5.4.x. I'm using the EPEL and REMI repositories. I'm trying to install the libsodium extension. It is my understanding that I need to install libsodium first, then the extension. Based on Googling, to get…
Michael Mac
  • 102
  • 1
  • 11
0
votes
1 answer

Cross-compiling libsodium for iOS

I want to cross-compile the libsodium cryptography library for use on iOS. Specifically, I want to compile it for armv7, armv7s and arm64 so that it works for older as well as newer iPhones. I followed the instructions on the libsodium website…
Nimyz
  • 339
  • 2
  • 11
0
votes
1 answer

Libsodium sign and verify

The function int crypto_sign(unsigned char *sm, unsigned long long *smlen, const unsigned char *m, unsigned long long mlen, const unsigned char *sk); prepends a signature to message m. However, I am unable to find in the…
robert
  • 3,539
  • 3
  • 35
  • 56
0
votes
2 answers

I get error LNK2019 when I try to compile zeromq sources

I'm trying to compile the zeromq sources and I have the following error: I'm using Visual studio 2013 update 4 / windows 7 x64 First of all I compile the libsodium library satisfactorily. Then I link the libsodium header files directory path to…
auo
  • 11
  • 4
0
votes
1 answer

Decrypting with libsodium with a 64-bit nonce

I have a site set up which takes data from a form and encrypts it using libsodium for php. Due to something that happened on the server, somehow the CRYPTO_BOX_NONCEBYTES variable returned 64 instead of 24. We now have several files that are…
littlekellilee
  • 123
  • 1
  • 5
0
votes
1 answer

pysodium crypto_box_open throwing ValueError

I'm using libsodium with the python bindings in pysodium 0.6.6 When using crypto_box and crypto_box_open, I always get a ValueError. Here is a simple example: import pysodium import random serverPK, serverSK =…
Alex Forsyth
  • 177
  • 1
  • 9
0
votes
0 answers

secure dynamicaly growing memory (libsodium)

I am collecting sensitive form user input which, when the input has finished, I want to encrypt using asymmetric encryption. I do not know the length of the data beforehand. I dont't want the data to be swapped out (because it is sensitive). So I…
Nathan
  • 7,099
  • 14
  • 61
  • 125
0
votes
1 answer

Add external libraries (dependencies) and reference them correctly in my python code

I try the following code to see if the library sodium can be located import ctypes import ctypes.util # Taken from line 33 https://github.com/bgaifullin/pysodium/blob/master/pysodium/__init__.py o = ctypes.util.find_library('sodium') print…
Charles Okwuagwu
  • 10,538
  • 16
  • 87
  • 157
0
votes
2 answers

Encryption using libsodium

I have been struggling to encrypt/decrypt some data using crypto_secretbox_easy() in libsodium. I can't seem to find any good documentation on the usage. I want to get a password from the user, use that to somehow make a key, then encrypt/decrypt…
lambda
0
votes
0 answers

Encryption using libsodium and need to generate public and private keys using crypto_box_keypair()

Need some help. I am working on encryption, where I need to implement crypto_box_keypair() or decode a hex string to a byte array so that you have to get a public and private keys. I also need to call crypto_box(m,n,pk,sk) for encryption. I have…
user3197071
  • 41
  • 1
  • 5
0
votes
1 answer

How to encrypt string using lib-sodium in iOS

I have scanned a QR Code image using ZXingWidget lib, received a string as response. Now I want to encrypt that string using lib-sodium in iOS. Any suggestion how to do string encryption in iOS using lib-sodium library.... Thanks in advance...
-1
votes
1 answer

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)) { $keypair = file_get_contents($keypair, FALSE,…
Johhn
  • 979
  • 17
  • 24
-1
votes
1 answer

How to use/install sodium-plus

I have an issue, I don't understand how to "install" sodium-plus for using on my website. I installed :