libsodium

Trouble Installing libsodium on Centos 6

无人久伴 提交于 2019-12-12 03:45:47
问题 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 the right version, I ended on: yum --enablerepo=remi install php54-php-pecl-libsodium and I get the following result: Installed: php54-php-pecl-libsodium.x86_64 0:1.0.5-1.el6.remi Dependency Installed: audit-libs-python.x86_64 0:2.3.7-5.el6

Sodium is not loading on XAMPP PHP 7.2

喜夏-厌秋 提交于 2019-12-11 11:58:50
问题 Hey for some reason when i use XAMPP PHP 7.2, all of the sodium functions are not working. When i run print_r(get_loaded_extensions()); it does not show sodium on the list. When i go to http://php.net/manual/en/sodium.installation.php it says no installation needed they are a part of the core. So i went to my php.ini configuration file and made sure that it did not disable sodium, it says extension=php_sodium.dll . I went to the console to double check to see if their were any errors, there

Can't decrypt encrypted file using libsodium

谁说我不能喝 提交于 2019-12-11 06:14:37
问题 I'm working on the encryption using libsodium my problem is the decryption part, its not going through and displaying error. Fatal error: Uncaught SodiumException: ops limit must be greater than 0 in C:\xampp\htdocs\encrypter\decrypt.php:18 Stack trace: #0 C:\xampp\htdocs\encrypter\decrypt.php(18): sodium_crypto_pwhash() #1 {main} thrown in C:\xampp\htdocs\encrypter\decrypt.php on line 18 I tried to copy some lines in the encryption code but didn't work. I also receive warning. But I don't

Using libsodium in an android studio project

被刻印的时光 ゝ 提交于 2019-12-10 19:12:13
问题 I am trying to utilize the libsodium library in an android studio project. However, I am having trouble figuring out how to do this. I have the library downloaded from the libsodium website, but do not understand how to create the library files necessary for an android studio project. Any help would be greatly appreciated. I imagine that kalium (https://github.com/abstractj/kalium) would help me do this, but am slightly confused on how to incorporate that as well. 回答1: I know it's quite late,

ZeroMQ doesn't spot libsodium

依然范特西╮ 提交于 2019-12-09 17:30:04
问题 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 many test passes, but stated: libsodium not installed, skipping CURVE test So sudo yum install libsodium and sudo ldconfig , then make clean , and the commands above. But next time I ran the make check , the CURVE test is skipped, again reporting no

LIBSODIUM decrypt data inside mysql query like did with AES_DECRYPT

删除回忆录丶 提交于 2019-12-08 06:53:05
问题 I have some sql querys where im selecting rows near to the users location. With AES_DECRYPT i could do inside the query: AES_DECRYPT(lat, :key) I need the decrypted value inside the query to: 1. order them 2. delimit entrys in a given area 3. and similar things for other querys A short example of one query: SELECT something, ( 6371 * acos( cos( radians(".$userdatafromdbfetchedbefore['lat'].") ) * cos( radians( AES_DECRYPT(lat, :key) ) ) * cos( radians( AES_DECRYPT(lng, :key) ) - radians(".

LIBSODIUM decrypt data inside mysql query like did with AES_DECRYPT

依然范特西╮ 提交于 2019-12-06 18:17:23
I have some sql querys where im selecting rows near to the users location. With AES_DECRYPT i could do inside the query: AES_DECRYPT(lat, :key) I need the decrypted value inside the query to: 1. order them 2. delimit entrys in a given area 3. and similar things for other querys A short example of one query: SELECT something, ( 6371 * acos( cos( radians(".$userdatafromdbfetchedbefore['lat'].") ) * cos( radians( AES_DECRYPT(lat, :key) ) ) * cos( radians( AES_DECRYPT(lng, :key) ) - radians(".$userdatafromdbfetchedbefore['lng'].") ) + sin( radians(".$userdatafromdbfetchedbefore['lat'].") ) * sin

ZeroMQ doesn't spot libsodium

穿精又带淫゛_ 提交于 2019-12-04 05:24:36
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 many test passes, but stated: libsodium not installed, skipping CURVE test So sudo yum install libsodium and sudo ldconfig , then make clean , and the commands above. But next time I ran the make check , the CURVE test is skipped, again reporting no libsodium. Looking at the tests, I see test_security_curve.cpp has #ifndef HAVE_LIBSODIUM and that

libsodium-64.dll not found in production Azure Service Fabric cluster

大兔子大兔子 提交于 2019-12-03 21:29:04
问题 Using libsodium-net for all of its security goodness in an Azure Service Fabric Reliable Service, on my local dev cluster everything is working fine (although I did have to set the libsodium-64.dll to copy to the output directory). Unfortunately, when deployed to a real cluster in Azure it throws the following error: Unable to load DLL 'libsodium-64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) I've checked by Remote Desktop-ing into one of the nodes and

How to encrypt / decrypt AES with Libsodium-PHP

雨燕双飞 提交于 2019-12-03 12:37:33
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 documentation of how to use the library (that I was able to find). Can anyone that has experience with PHP encryption either point me in the direction of a good learning resource or write a few lines of sample code using Libsoduim-PHP? Thank you very much for the help, Atlas Much like the other PHP encryption libraries I have researched Libsoduim