### Example output of curl HHHash calculation Source: https://github.com/adulau/hhhash/blob/master/README.md This is the output produced by the curl command for https://www.circl.lu/. It shows the resulting HHHash value in the format hhh:1:. ```text hhh:1:78f7ef0651bac1a5ea42ed9d22242ed8725f07815091032a34ab4e30d3c3cefc ``` -------------------------------- ### Using hhhash Python library to build hashes Source: https://github.com/adulau/hhhash/blob/master/README.md This IPython session demonstrates using the hhhash.buildhash function to compute HHHash values for different URLs. The debug parameter is set to False. The output shows the resulting hash strings. ```ipython In [1]: import hhhash In [2]: hhhash.buildhash(url="https://www.misp-lea.org", debug=False) Out[2]: 'hhh:1:adca8a87f2a537dbbf07ba6d8cba6db53fde257ae2da4dad6f3ee6b47080c53f' In [3]: hhhash.buildhash(url="https://www.misp-project.org", debug=False) Out[3]: 'hhh:1:adca8a87f2a537dbbf07ba6d8cba6db53fde257ae2da4dad6f3ee6b47080c53f' In [4]: hhhash.buildhash(url="https://www.circl.lu", debug=False) Out[4]: 'hhh:1:334d8ab68f9e935f3af7c4a91220612f980f2d9168324530c03d28c9429e1299' In [5]: ``` -------------------------------- ### Calculate HHHash using curl with --http1.1 Source: https://github.com/adulau/hhhash/blob/master/README.md Use this curl command to compute the HHHash of a server. The --http1.1 switch is required to match the hash produced by the Python requests module, which does not support HTTP/2. The command extracts header keys, removes empty lines, joins them with colons, and computes the SHA256. ```bash curl --http1.1 -s -D - https://www.circl.lu/ -o /dev/null | awk 'NR != 1' | cut -f1 -d: | sed '/^[[:space:]]*$/d' | sed -z 's/\n/:/g' | sed 's/.$//' | sha256sum | cut -f1 -d " " | awk {'print "hhh:1:"$1'} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.