I have the following function that hashes a string:
public static uint hashString(string myString)
{
uint hash = 0;
foreach (char c in myString)
{
hash *= 0x1F;
hash += c;
}
return hash;
}
So if I want to hash hello it will produce 99162322.
Is it possible to write a reverse function that takes in a number and spits out the string (given that the string result is unknown)?