Hello i was wondering if the following code is easily reversible:
PHP Code:
string jhash(string str)
{
unsigned int i;
for(i = 0; i < str.length()-1; i++)
str[i] >>= str[i+1];
for(i = 1; i < str.length(); i++)
str[i] += str[i-1];
for(i = 0; i < str.length()-1; i++)
str[i] <<= str[i+1];
for(i = 1; i < str.length(); i++)
str[i] ^= str[i-1];
return str;
}
Thanks for your help.