[kwlug-disc] Hash Functions.

Joe Wennechuk youcanreachmehere at hotmail.com
Sun Jan 2 12:26:47 EST 2011


Well, I guess I need to approach it differently. What I guess want to do like this kind of


<?php


function strcrc32($text) {


  $crc = crc32($text);


  if ($crc & 0x80000000) {


    $crc ^= 0xffffffff;


    $crc += 1;


    $crc = -$crc;


  }


  return $crc;


}


?> 

 
but I'm not good enough at php to turn the 32 bit dec number into a 5 byte(Or shortest possible)  ASCII 1- 127 srting.









Joseph Wennechuk

________________


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20110102/0b391217/attachment.htm>


More information about the kwlug-disc mailing list