BrainTeaser Difficult

Problem - 4671

$\textbf{Secured Delivery}$

John wants to send a valuable gift to Mary. He has a lockable box that is large enough to contain the gift. The box also has a locking ring that can have a few locks attached. However, Mary does not have the key to any of John's locks. How can John send the gift to Mary securely?


$\textbf{Solution}$

John sends the box containing the gift with one of his locks. Upon receiving, Mary attaches one of her locks to the box and sends it back to John. John then removes his lock and sends the box back to Mary. At this moment, the box is locked only by Mary's own lock. Done.

$\textbf{Note}$

This brain teaser has a background context in cryptography which can be used to send secured electronic messages between two parties over an insured communication channel. In this case, John and Mary do not know whether someone may try to check what is inside the box during the transition.

report an error