SESSID string length heuristics

From: Date: Thu, 29 Dec 2011 18:18:49 +0000
Subject: SESSID string length heuristics
Groups: php.internals 
Request: Send a blank email to internals+get-57148@lists.php.net to get a copy of this message
Hello. I'd like to know what's the explanation behind the math done on line #413 in ext/session/session.c [1] and why couldn't it be just: total_bits / hash_bits_per_character Where total_bits equals 128 if the hash function is md5 or 160 if sha1. [1] http://svn.php.net/viewvc/php/php-src/trunk/ext/session/session.c?view=markup -- Common sense is not so common - Voltaire http://tweak-it.tk/ - Personal portfolio and web-log - Barbu Paul - Gh. Visit My GitHub profile to see my open-source projects - https://github.com/paullik

« previous php.internals (#57148) next »