public static void Main()
string guid ="41C18B19-6832-4721-AEB9-CC93308A2ADV";
guid = new Guid(guid).ToString().ToUpper();
string result = GetStableHashCode(guid.ToUpper()).ToString("x");
Console.WriteLine(result);
public static int GetStableHashCode(this string str)
for(int i = 0; i < str.Length && str[i] != '\0'; i += 2)
hash1 = ((hash1 << 5) + hash1) ^ str[i];
if (i == str.Length - 1 || str[i+1] == '\0')
hash2 = ((hash2 << 5) + hash2) ^ str[i+1];
return hash1 + (hash2*1566083941);