Hey all,
I need a good hash function (for strings) that will produce the same hash value for a specific string on different platforms,
My app invovles a server farm, and a "bank" server,
Each server produces hash "keys" for strings and the bank stores the keys.
The Servers may later ask the bank if a specific key [hash value] exists in the bank and if so, do SomeThings() etc.
So the hash function hash to produce the same values on the bank server and on each of the servers on the farm (as well as PC who occasionally connect as clients and operate in a similar way to the servers on the farm.)
** All OS are windows (2k8_R2 or Win7) 64 bit
Thoughts:
- Will SHA-2, GetHashCode() or some other off-the-shelf standard, work well for me?
- Do I have to implement my own hash function in order to overcome the cross platform issue? if so, any recomendation for a good one.
Thanks a bunch,
Edo