Whether it is feasible to locate a shorter password which hashes on the same price as a longer password, the hashing algorithm is broken. $endgroup$Once the keys are strings (or integers), a trie might be another option. A trie is usually a tree, but indexed in different ways from a lookup tree: you publish The main element in binary, and go still