Skip to content
This repository was archived by the owner on Jul 27, 2022. It is now read-only.
This repository was archived by the owner on Jul 27, 2022. It is now read-only.

Unrecoverable error in algo #3

@blake-r

Description

@blake-r

For all who wants to implement this in other languages: there is error in one algorithm.

Error is in function convertToDigits:
s += String.fromCharCode((seed + sInput.charCodeAt(i)) % 10 + 48);

It takes the char code of last digit character and not of current non-digit character.

Right variant must be as:
s += String.fromCharCode((seed + sInput.charCodeAt(i+j)) % 10 + 48);

Almost same error is in removeSpecialCharacters.

Unfortunally, too much people already has hashes with that errors, therefore the best choice do not repair it.

Also, I'm inform that I'm write C realization: blake-r/c_password_hasher@eb72bcd

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