DEK Hash

DEK is a hash function algorithm.



									public static uint DEKHash(string str)
{
	uint hash = (uint)str.Length;
	uint i = 0;

	for (i = 0; i < str.Length; i++)
	{
		hash = ((hash << 5) ^ (hash >> 27)) ^ ((byte)str[(int)i]);
	}
	
	return hash;
}
								


Example

									string data = "jdfgsdhfsdfsd 6445dsfsd7fg/*/+bfjsdgf%$^";
uint value = DEKHash(data);
								


Output

									3354994598