'how to check that libsodium encryption is available in php?

I have a webserver where php is running on it. I need to use NACL encryption for data encryption between client and server. However when i tried to call sodium_bin2hex() for example, the function does not exist.

is there a way to use libsodium or similar from php using include instead of installing the extension ? i don't have access to the webserver shell. any solution ?

thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source