I was attempting to encrypt de cookie data with md5, but I can not validate the hash back.
Bu cookie_data is a serialized array, normal bir stringvalues iş tamam çünkü gerçeği ile, ilgisi var.
It's actually from a codeigniter class, but it does not work?? Does anyone know what the problem might be?
$hash = substr($session, strlen($session)-32);
$session= substr($session, 0, strlen($session)-32);
if ($hash !== md5($session.$this->encrypt_key))
{........
ve çerez değeri, bu gibi şifreli
$cookie_data = $cookie_data.md5($cookie_data.$this->encrypt_key);
EDIT I found that the answer is to use urlencode en urldecode in the proces of creating and validate md5 hashes, because setcookie does urlencode automaticly, and thereby possibly changing the hash.
teşekkürler, Richard