Skip to content

Hi, I am trying to use your sdk for python 3 for automation order to mimic the generated hash in C++ #4

Description

@cr-IssaharGourfinkel

Hi,
Seems metro hash 64 implemented by you giving different hash results relating the metro hash C++ toolkit and python metro hash which was used in python2 .

I need to create automation in python 3 (in python 2 it is working with original metro hash python toolkit and the value was the right one)
How it is possible that same string results in 2 different values between toolkits?
I have checked
pyhash.metrohash_64 vs metrohash64 (of python2) vs your, 3 different values on hashing "/sbin/launchd" string
:-)
Is metrohash hashing algrorithm is a standard or everyone implement it as he/she wants?

Activity

  1. Dobatymo commented on Dec 16, 2021

    @Dobatymo
    Owner

    @cr-IssaharGourfinkel Please run the test.py file and see if the tests succeed. If not there might be something wrong with your install. Otherwise there is a seed value you can specify in your constructor. The default values might differ. There have been some updates to the original algorithm (see https://github.com/jandrewrogers/MetroHash). This library does not support the old legacy versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions