Issues with Libsodium - how to activate the extension here?

Hi, my website uses an dll (working on >PHP7) called Libsodium for official site or Libsodium for PHP MANUAL, all i did in my localhost has taking out the semicolon “;extension=sodium” in php.ini conf and done ! But here in 000webhost i don’t know how to enable it !
Here is an example:

<?php echo sodium_bin2hex(random_bytes(SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES)); ?>

How it should works:
image

In 000webhost:
image

So how can I enbale Libsodium here ?

Since free plan doesn’t include command line you won’t be able to enable further PHP extensions sadly this would be a premium Hostinger feature, perhaps there is alternative free hosting you may be able to use?

So if I upgrade to “Premium Hosting” plan i will be able to use the extension right ?

Yes using a VPS you have full control of extensions installed :grin: