I came up with a string hashing algorithm which I haven't seen before, and I was hoping to get some opinions on whether it has merit as a usable hashing function for things like cryptography.
Code:unsigned long hash(const std::string& str) { std::string::iterator it; unsigned long hashed = 0; for(it = str.begin(); it != str.end(); it++) { hashed = ((hashed - (*it)) << ((*it) % 7)) + (*it); } return hashed; }