sending data via url securely
Depending on your situation, sometimes it is quicker to append form data to urls. To do this securely, we need to encrypt it and decrypt it later. One good solution is to use mcrypt.
We can create a class like so:
class Encryption {
var $skey = “your own key”;
public function safe_b64encode($string) {
$data = base64_encode($string);
$data = [...]
