PHP-cipher You need to make sure that the sodium extension is enabled in php.ini extension=sodium How to encrypt $ php encrypt.php "some text you want to encrypt" decrypt $ php decrypt.php