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. 😅

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Infosec Exchange

A Mastodon instance for info/cyber security-minded people.