0

You want to send a secret message to your friend Alex in the mail.
But Sam, who you don't trust, has access to all your mail.
So you put your message in a box with a lock.
But you can't send a key, because Sam could use or copy it!
How can you get your message through securely?

Note: Alex doesn't have a key to your lock.

math scat
  • 1,137
  • 3
  • 23

2 Answers2

3

This is a very famous problem. Not sure if it’s been posted here before however.

The solution involves

Sending it back and forth three times.

This way

You send the message to Alex with your lock. Alex attaches his own lock and returns it. You remove your lock, so the box only has Alex’s lock on it, send it back to him, and he can unlock it and see your message. This way the message always has a lock on it.

Beastly Gerbil
  • 58,036
  • 8
  • 166
  • 314
2

Here is how

You send the locked message (without the key) to Alex.
Alex puts an extra lock on the message (Alex has the key to that extra lock).
Alex sends the double locked message (without any key) back to you.
You remove your lock, and send the message back to Alex.
Alex removes the lock that he put on.
Voila!

risky mysteries
  • 13,072
  • 3
  • 24
  • 96