If my variable looks like this:
$name = "John";
and I want the above variable, to be encrypted to something like:
encrypt($name) //Will output something like: AIfzx353HA7f (Just random chars)
And then, be able to decrypt it, so it will output John again.
decrypt($name) //Will output John
Is this possible to do with PHP?