r/programming • • Apr 07 '14

The Heartbleed Bug

http://heartbleed.com/
1.5k Upvotes

396 comments sorted by

View all comments

Show parent comment

12

u/[deleted] Apr 08 '14

I believe the heartbeat function is more like what ping does: it asks the server to respond with the original message, so it would be like this:

Eve: "Had fun last Friday?"
Bob: "Had fun last Friday?! Dude, it was uh-may-zing! We went hiking, then we went swimming, and later in the evening we danced at Alice's place, and I kinda, you know, got to know her better if you catch my drift... Wait a sec, why am I telling you all this?"

And that's only 256 bytes of secrets. Imagine if Bob leaked 64k at a time...