Created
April 14, 2018 17:29
-
-
Save xd4rker/5d9cf839c34778f561f02105ca4ad3ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.21; | |
contract Crack { | |
uint8 public answer; | |
bytes32 answerHash = 0xdb81b4d58595fbbbb592d3661a34cdca14d7ab379441400cbfa1b78bc447c365; | |
function Crack() public { | |
for(uint8 i = 0; i <= 2000; i++) { | |
if(keccak256(i) == answerHash) { | |
answer = i; | |
break; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment