note 110248 deleted from function.hash-file by danbrown

From: Date: Wed, 17 Oct 2012 21:31:01 +0000
Subject: note 110248 deleted from function.hash-file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191414@lists.php.net to get a copy of this message
Note Submitter: pakoppan at cox dot net ---- Just an observation regarding fnv164 algorithm. When executing: <?php echo "fnv164 =".hash_hmac('fnv164','name','Afb$#1^38Ngt?')."<br/>"; echo "fnv164 =".hash_hmac('fnv164','name','Afb$#1^38Ngt0')."<br/>"; ?> 'Afb$#1^38Ngt?' and small change in the last digit: 'Afb$#1^38Ngt0' always result in the same output as long as I change the last digit of the sequence. 'Afb$#1^38Ngt?' gives me 553fb99a60cc0050 'Afb$#1^38Ngt0' gives me 553fb99a60cc0050 Since I don't know how the algorithm works, fnv164 it seems to be a bit unreliable when it comes to collisions.

« previous php.notes (#191414) next »