Ask Question
7 May, 03:09

You and your friend who lives far away want to fairly and randomly select which of the two of you will travel to the other's home for a visit. Your friend remembers having learned about using hashes as cryptographic commitments and proposes to use a coin toss to decide. He tells you to randomly choose 'heads' or 'tails' by throwing a coin, hash the result using sha256, and send him the hash. Once you have committed to the outcome, he'll guess 'heads' or 'tails', you'll reveal to him your choice and he can verify that the hash is correct. If his choice matches your coin toss, then your friend wins and you have to make the trip. What is the problem with this scheme, as described?

a. there's no way to prove that your coin toss is random

b. there's no way to prove that sha256 is collision resistant

c. your friend can hash all possible options and discover your secret

d. unless you sign the hash message your friend can't be sure it was you who sent it

+4
Answers (1)
  1. 7 May, 06:59
    0
    c. your friend can hash all possible options and discover your secret.

    Explanation:

    SHA-256 is a set of hash functions that was designed by the NSA. SHA-2 is considered an upgrade on the set that was its predecessor, SHA-1. A hash is a mathematical function that condenses data in a process of one-way encryption. SHA-256 creates hash algoritms that are considered irreversible and unique. However, one of the properties of hashing algorithms is determinism, which means that any computer in the world would be able to compute a particular hash and get the same answer.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You and your friend who lives far away want to fairly and randomly select which of the two of you will travel to the other's home for a ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers