here I give you one simple example with our own private key, which you can use as below
// Secret key to encrypt / decrypt using
$key='mysecretkey'; // 8-32 characters without spaces
// String for encryption
$string1='your sample key, that is the question';
// String EnCrypt
$string2=convert($string1,$key);
// DeCrypt back
$string3=convert($string2,$key);
// Test output
echo '<span style="font-family:Courier">'; echo 'Key: '.$key.'<br>'."\n"; echo $string1.'<br>'."\n"; echo $string2.'<br>'."\n"; echo $string3.'<br>'."\n"; echo '</span>'."\n";
OUTPUT
Key: mysecretkey your sample key, that is the question tvfw
Let me know that I can help you.
source share