-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No sodium for 7.2 #101
Comments
You need to because libsodium is considered an option on install. Travis CI
does not include it in their images. So if you use the built in libsodium
function without manually installing with the Travis configuration, errors
would pop up saying undefined function.
travis-ci/travis-ci#8863
…On Fri, Mar 2, 2018, 6:37 AM aolko ***@***.***> wrote:
apparently you don't need to apt install php7.2-sodium anymore
oerdnj/deb.sury.org#747
<oerdnj/deb.sury.org#747>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#101>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ac5oMw99Lbw4BMBZbAkRJdkcxe1DDQS8ks5taS73gaJpZM4SZxZQ>
.
|
The OS needs to include libsodium with PHP 7.2. Failure to do so is a sign that your OS vendor is asleep at the wheel regarding the PHP community. |
Nevermind. Do not install |
does this make https://github.com/paragonie/halite/blob/master/doc/Install-Guides/Ubuntu.md redundant? |
When I use the And try to find My executed commands are as follows:
And the result is nothing to be presented.
|
What is the output of the following PHP script? <?php
if (extension_loaded('sodium')) {
$key = sodium_hex2bin('ba6d0a2309dc546d1131f4be04dfa14da9d7e8a5430f99b7446f4207405473d5');
$nonce = sodium_hex2bin('94417152051bd43661f12dff58709b1566f052aba4fd7806');
$c = sodium_hex2bin(
'd2207e8651189c0b4d3a51d544f7811b51f899ca55a6dc0630e5c9dd262c34' .
'bb0af2fd248493899c3dfb007a2bc366faf300034a602bbe8b54d38df135dd' .
'2a70086f89c711e86d60e44ac1826909c4527c7f8cc55a3c4e45a79ae573da' .
'1c352ed618b3'
);
echo sodium_crypto_secretbox_open($c, $nonce, $key), PHP_EOL;
} else {
echo 'Not loaded', PHP_EOL;
exit(1);
} |
@paragonie-scott, thanks for your reply. The result is available here after executing the code snippets you mention: And the
Why? According to the sodium_crypto_secretbox_open function reference, it should be the Your code snippets seem to be have the incorrect argument order. After exchanging the
|
Sodium is installed in php7.2 just check with:
|
apparently you don't need to
apt install php7.2-sodium
anymore oerdnj/deb.sury.org#747https://kinsta.com/blog/php-7-2/
The text was updated successfully, but these errors were encountered: