Open In App
Related Articles

Puzzle | Secret Mail Problem

Improve Article
Save Article
Like Article

A person ‘A’ wants to send a secret message to his friend ‘B’ through a mail, but C (A’s friend), whom A does not trust has access to all A’s mails. So A puts his message in a box with a lock but A is not allowed to send a key. How can A send his message through securely?


A send the box to B.
B can not open it.So ,he can put another lock on the box.
B send this box with the 2 locks send back to A. A unlock his lock and send it back to B again.

So, there is just B’s lock on the box. B can open it.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 18 Jan, 2023
Like Article
Save Article
Similar Reads