FYI we released a tool to calculate a bunch of these types of hashes: https://book.shodan.io/command-line-tools/shodan-hash/
More info about the favicon hashing technique: https://blog.shodan.io/deep-dive-http-favicon/