[Python] Murmur Hash in Python outputs wrong hash

Discussão em 'Python' iniciado por Stack, Maio 7, 2025.

  1. Stack

    Stack Membro Participativo

    I tried this online murmur hash tool and it's outputting the correct hash for the user agent input. I have it set to Murmur Hash 3 x64 128 bit and it's working well. Im trying to replicate the behavior in python. I tried the pymmh3 package but it's outputting the wrong hash, or im using it wrong.

    Anyone know how I can replicate the hash logic from that site?

    testHash("5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36")

    # function outputs
    # 4dc49759f17d090f97fca4dadead58f9

    # Correct output
    # 97fca4dadead58f94dc49759f17d090f


    [​IMG]

    Continue reading...

Compartilhe esta Página