Encrypt/Decrypt a string in PHP with Substitution Algorithm + SALT + Private Key.
To deploy this project run
git clone https://github.com/priv4cy/php-substitution-encrypt-decrypt.git
include('substitution.php');
$ed = new substitution();
$encrypted = $ed->encrypt('my string', 'nX2b1F', 'sEcReTkEy');
$decrypted = $ed->decrypt($encrypted, 'nX2b1F', 'sEcReTkEy');