Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

149
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda