my encode sample

[code language=php] // my_encode( ) $secret = ‘11111’; function my_encode($data) { $data = serialize($data); $hash = md5($GLOBALS[‘secret’] . $data); return array($data, $hash); } // my_decode( ) function my_decode($data, $hash) { if (!empty($data) && !empty($hash)) { if (md5($GLOBALS[‘secret’] . $data) ==…

Continue Reading my encode sample