Skip to content

Incorrect results from hashlib functions #13

@simon-weber

Description

@simon-weber

All of the hashlib functions that I tried gave incorrect output.

For example, compare this stdlib example code:

>>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest()
'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'

against the result on repl.it:

>>> hashlib.sha224("Nobody inspects the spammish repetition").hexdigest()
'03143f9f164335fafd05051e0163df081007ba1208d6f9eb4fd3f6fe'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions