BP Hash
BP is a hash function algorithm.
public static uint BPHash(string str)
{
uint hash = 0;
uint i = 0;
for (i = 0; i < str.Length; i++)
{
hash = hash << 7 ^ ((byte)str[(int)i]);
}
return hash;
}
Example
string data = "jdfgsdhfsdfsd 6445dsfsd7fg/*/+bfjsdgf%$^";
uint value = BPHash(data);
Output
2093568606