Generate a Hashcode for a string that is platform independent
问题 We have an application that Generates a hash code on a string Saves that hash code into a DB along with associated data Later, it queries the DB using the string hash code for retrieving the data This is obviously a bug because the value returned from string.GetHashCode() varies from .NET versions and architectures (32/64 bit). To complicate matters, we're too close to a release to refactor our application to stop serializing hash codes and just query on the strings instead. What we'd like to