Saw a fancy hashing algorithm in a browser extension:
for (char in string) hash = (hash << 5) - hash + char
Seems to be a port of Java’s hashing algorithm lifted from Stack Overflow. Luckily, this is dead code and not used anywhere. 😅
A Mastodon instance for info/cyber security-minded people.