Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
d0sboots opened this issue Jun 19, 2023 · 2 comments
Open

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

d0sboots opened this issue Jun 19, 2023 · 2 comments

Comments

@d0sboots
Copy link

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.

@bluewave41
Copy link
Contributor

The problem statement values are random as you can see in the source.

https://github.com/HaschekSolutions/0xf.at/blob/master/data/levels/hackit38.php#L38

The puzzle works correctly regardless of the problem statement but it does seem to be incorrect.

@d0sboots
Copy link
Author

Good to know that the problem itself works. I didn't try it/trust it since the example was wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants