Skip to content

fix hashUID function #16

@bebbi

Description

@bebbi

hashing UID works but is not completely following specs
http://www.itu.int/rec/T-REC-X.667-201210-I/en
The sha1.js might be returning wrong sha1 functions for strings that contain non-readable chars.
Also, the final replacement of digits may be wrong.
Issue appears minor, but there's an unknown risk of the sha1.js reducing the target value space, so better to implement and confirm compliance with specs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions