Hi all can some one give me a good simple example for encrypting/de-crypting what i am after is:-
$key = ‘secret word’; // to encrypt by
$string = ‘this is the text to be encrypted’; //text to be encrypted
$encrypted = $string encrypted, //encrypted string
then i want to be able to do the opposite
$key = ‘secret word’; // to de-crypt by
$encrypted = $string encrypted, //encrypted string
$string = ‘this is the text to be encrypted’; //de-crypted string