Encryption/Decryption with Sodium extension with php 5.6 not working

99 Views Asked by At

My Old project is on 5.6 so Sodium extension for Encryption/Decryption is not working so my system engineer set some setting that if I run file with .php7 extension it run on php 7 and normal .php run on php 5.6.

So when I need to do Encryption/Decryption I simply run api with my base use like : htps://mydoman/encode/v2/test.php7

I need to do some code that I can use direct php 7 file and do Encryption/Decryption.

How is that possible ? with file include its not working , also I try file_get_contents but not working.

I try to run .php7 (php 7) file in normal .php (php 5.6) file but not working.

0

There are 0 best solutions below