Skip to content

Hash is missing NULL bytes #2

@malwarefrank

Description

@malwarefrank

According to the Machoc description, each function should be represented by a 32-bit value. The current code is not including any NULL bytes when converting the number to its hex representation.

It should be a simple fix: '{:08x}'.format(mmh3.hash(machoke) & 0xFFFFFFFF)

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