I have problem with including CryptoGuard, but maybe there is my issue with object-oriented code, because I am newbie in that.
require_once('CryptoGuard.php'); // = https://github.com/CoreProc/crypto-guard/blob/master/src/CryptoGuard.php
$passphrase = 'my_private_key';
$cryptoGuard = new CryptoGuard($passphrase);
$stringToEncrypt = "private string";
$encryptedText = $cryptoGuard->encrypt($stringToEncrypt);
echo $encryptedText;
Easy usage of CryptoGuard example: https://github.com/CoreProc/crypto-guard (same as I used, but I do not use Composer so I just copied CryptoGuard.php).
There is no php error, but the part with cryptoGuard broke page (stop loading anymore things, no $encryptedText echo there).
echo '>' . $encryptedText . '<';just to make sure whether or not that statement is executed?var_dump($cryptoGuard->encrypt($stringToEncrypt));? and is error reporting set toerror_reporting(E_ALL);?echo "loaded";at the end of CryptoGuard.php file and it is really loaded correctly. Very strange, where can be problem please?