(With some --ignore-typo-suggestion just in case of automated edge-cases, of course :)
(With some --ignore-typo-suggestion just in case of automated edge-cases, of course :)
The problem is that the information density of replacing hex with words is quite low, on the order of 14 bits per word, but much longer than the four letters needed to represent 16 bits in hex, which is itself a lot less dense than base64. You’d need 12 words to uniquely identify a sha-1 hash and most modern algorithms are less dense than that. But it would be harder to trick someone.
Maybe there’s some sort of 5:4 coding system that’s easier for humans to scan, still to be discovered out there?
I'm happy to be proven wrong by someone who finds something in the middle. Preferably without using emojis...
In this way a `phylum npm install <pkgName>` would perform the typosquat checks _and_ limit access to system resources. You can even alias this as `alias npm="phylum npm"` so that it's easier for the user.
[0] https://blog.sonatype.com/sonatype-releases-new-nexus-firewa...