Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

148
Visualizações
MetroHash has different hashing than MurmurHash3 in Javascript?

So in when i use in Javascript murmurhash-native/stream like so:

const murmur = require("murmurhash-native/stream");



const hash = murmur.createHash("murmurhash128");
hash.update('hash').digest('hex');


console.log(hash.digest("hex"));

the console.log result is:

4ab2e1e022f63e2e9add75dfcea2dede

However, using MetroHash in Python with the following setup:

import metrohash



m = metrohash.MetroHash128(0)
m.update("hash")

print(m.hexdigest())

i get on the otherhand from the print the value

e8a8b5ad0ae42fb46ab073e8bd98479a

Am I doing something wrong? As far as I understood metrohash.MetroHash128 is used for incremental hashing, which is exactly what im looking for in Python, but somehow the result values are for the same input different.

Ive checked if there is any other library that supports incremental hashing in Python, but it seems MetroHash is so far the only one?

Any help would be appreciated!

Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda