Computer Science/Java program

Question

In Bitcoin, a value called a Nonce is used to secure a block in the blockchain.  The Nonce is a value which when hashed with the overall hash of the block produces a value with 61 leading zeroes (in binary).  Recall that the Bitcoin hash is SHA256 which is a 256-bit binary value. 

For this program, compute the hash of the string “ABCDEFGHIJ” and find the nonce such that the 32-bit hash value has eight leading zeroes.  In hex, this would be 0x00_ _ _ _ _ _.  Use the hashCode(int, int) method from Program 2.  You must find the nonce via trial and error.  The hashCode method is weak from a cryptographic viewpoint, and so an analytical solution is possible.  Do not do an analytical solution.


Details
Purchase An Answer Below

Have a similar question?