Welcome Guest, Not a member yet? Register   Sign In
fastest way to hash a string in an int
#1

[eluser]gungbao[/eluser]
Hi Coders,

I am looking for PHPs fastest way to convert a string of an arbitrary length into ... not an md5 but a positive integer, not a unique one but the same string needs to end up always to the same integer. lets say, similar to md5 but without any characters but only digits in the hash.

Anyone an idea for a solution faster than grepping/replacing all numbers from a resulting md5?

Have fun to think about it Smile would help me a lot.
Thanks in advance for any idea,
Chris


Messages In This Thread
fastest way to hash a string in an int - by El Forum - 02-23-2009, 04:11 PM
fastest way to hash a string in an int - by El Forum - 02-23-2009, 05:19 PM
fastest way to hash a string in an int - by El Forum - 02-24-2009, 07:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB