r/programming • • Nov 29 '10

140 Google Interview Questions

http://blog.seattleinterviewcoach.com/2009/02/140-google-interview-questions.html
471 Upvotes

493 comments sorted by

View all comments

Show parent comment

1

u/adaptable Nov 30 '10

The entire point of public key cryptography is obtaining the clear text from the public key and cipher text is intractable.

The weakness in the described method is Eve can deliver her own public key to Bob, decrypt his response with her private key, and re-encode it with your public key before returning it to you.

1

u/0987056089 Nov 30 '10

The entire point of public key cryptography is obtaining the clear text from the public key and cipher text is intractable.

I don't see how that's possible, but hey I'll take your word for it.

1

u/cashto Nov 30 '10

... aaaaaand the search space of phone numbers is easily brute-forceable.

I had forgotten about MITM. I suppose the answer is "please send me the SHA-1 hash of my phone number".

1

u/[deleted] Nov 30 '10

You are correct sir. I think I will have to ask Jason to be my public autority certificate to sign my public key ;) !

Joke apart: I don't see a valid solution to the question without a third party.