Hacker News new | past | comments | ask | show | jobs | submit login

For what its worth, my solution was to give the guard a set of sealed envelopes. Each envelope having a password written on the outside and a password written on a piece of paper inside. The spy would give the guard the word that is written on one of the envelopes, the guard would then open the envelope and ask the spy for the password contained inside.



How do I know that you, the creator of the password pairs, are not an enemy's spy?


How do I know that you, the selector of the 100 digit number, are not an enemy spy?


Every "good" spy chooses his X, and sends the corresponding Y to the guards. No need to involve a 3rd person in between like in your solution.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: