Creating consistant integer from a string
807607Jan 8 2007 — edited Jan 9 2007I am in lookout for the mechanism to create unique integer from string. I have list of strings representing specific piece of information. But client will be able to query the value by using an integer value. (Client can not use string to query). So I need to convert all these strings (Max size 256 bytes) to unique integer number (4 byte) and give it to client so that they can use it to querry. Every time I reboot the system the integer value returned for a string should be same(consistent).
I have looked in to the hasing mechnism ...nothig concrete so far. please send me the mechnism that can be used to implement this.
-thanks