We're a place where coders share, stay up-to-date and grow their careers.
Quick unhasher (not a generic one, but it does the job)
const seed = 7 const prime = 37 const letters = "acdegilmnoprstuw" const unhash = (hash, acc, letterOffset = 0) => { if (hash === seed) return acc for (;hash%prime>0;hash--,letterOffset++); return unhash(hash/prime, letters[letterOffset] + acc) }
Quick unhasher (not a generic one, but it does the job)