Closed thekid closed 6 years ago
$ XP_RT=master xp version php
PHP/7.2.0-dev
$ XP_RT=master xp -w 'new \ReflectionExtension("sodium")'
ReflectionExtension {
name => "sodium"
}
Needs a line extension=php_sodium.dll
in xp.ini on Windows
However, the randombytes_buf()
function used in these examples doesn't exist in PHP core, presumably because random_bytes() should be used.
Working examples @ https://github.com/php/php-src/tree/master/ext/sodium/tests
https://wiki.php.net/rfc/libsodium