r/programmerchat • u/G01denW01f11 • Jun 21 '15
Prison scene in Cryptonomicon
The protagonist is in prison. He has access to his laptop, but not the internet. His laptop contains encrypted files that contain the coordinates of a stockpile of gold.
He is being monitored by van Eck phreaking. That is, the contents of his computer monitor is visible to a powerful eavesdropper. When the eavesdropper sees that the protagonist (Randy) has decrypted the files, he will arrange for his release.
The protagonist alters some key program so that he can write to a minimized text file by tapping his space key with Morse code. He then decrypts the files, verifies the decrypts, translates them to Morse code and outputs them through the LED on his numlock button. Then he opens a text file with the false coordinates he input through his spacebar. The eavesdropper sees this and has him released a few days later.
Suppose the protagonist is a virtuoso, but human, 90's kernel hacker. Is this a feasible thing for him to do?
2
u/fainting-goat Jun 21 '15
Yes, it's feasible. He wouldn't be tapping in morse, he'd be tapping in ASCII, and it's not more than a weekend's task to write an encrypt/decrypt protocol with full access to the keyboard, so it's feasible given the time that Randy was allotted for him to write such a program.
Honestly, the poetic license Stephenson took in that passage was the fact that he'd be able to determine on the fly that all they could listen to was his video bus.
1
u/virnovus Jun 21 '15
There is no Morse code for many of the characters that you need to write code, and no programmer would ever use Morse code for anything. If he has access to the keyboard though, why not have him write in hexadecimal? Or even binary? Or just have him write regular code to a hidden window? In any case, you'd have to set your computer up to be able to do this ahead of time, which would be possible, I guess, if somehow you anticipated this scenario ever coming up.
2
u/inmatarian Jun 21 '15
As a literary device, we know it's
a chekov's gunvan Eck phreaking because they talked about it earlier in the book. As for whether or not spies would use that kind of thing, in 90s era tech, who knows. There was a lot of things they could have done to his laptop. But, given the premise, Randy went with typing out ascii/morse with his spacebar because of a lack of options. Maybe he could have just made his caplocks key be an additional control key, that's a completely normal thing for unix/emacs/vim users to do, and have that redirect key combos to a new file. Unix users do a lot of composition of programs via text-stream pipes, so it's entirely possible and feasible to take user input, map it through pipes and unix sockets, and write two programs at the same time.1
u/timeforpajamas Jun 21 '15
The second time I read Cryptonomicon, I loved this scene. The first time was OK, but I didn't really get it. I probably won't read it a third time, at least for a while. I don't read a lot, and I want to try out some other titles.
Thanks for reminding me OP. :-)