Skip to content

sha1 example doesn't work (level 38) #12

@d0sboots

Description

@d0sboots

The example claims:
nonce = "132f4c5f0f"
sha1("string1"+"string2"+nonce) -> Results in sha1 hash 000000593a640078a309840d69b4e2064d09ae20 so 132f4c5f0f would be the solution if we were looking for 6 leading zeroes

$ python -c 'import hashlib;print(hashlib.sha1(b"string1"+b"string2"+b"132f4c5f0f").hexdigest())'
997ffa731506ee6d66dfafe17dbdf76316e2e67b
$ echo -n "string1string2132f4c5f0f" | openssl sha1
SHA1(stdin)= 997ffa731506ee6d66dfafe17dbdf76316e2e67b

It doesn't work if we assume "string1" and "string2" are placeholders and use the values from the problem statement, either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions