159 points · by jgrahamc · 16y ago · 28 comments
http://www.schneier.com/essay-099.html
Relevant bits:
Alice and Bob have a two-wire cable between them, and two resistors each -- we'll say they each have a 10-ohm and a 1,000-ohm resistor. Alice connects a stochastic voltage generator and a resistor in series to each of the two wires. That's the setup.
Here's how they communicate. At each clock tick, both Alice and Bob randomly choose one of their two resistors and put it in the circuit. Then, Alice and Bob both measure the current flowing through the circuit. Basically, it's inversely proportional to the sum of their two chosen resistors: 20 ohms, 1,010 ohms or 2,000 ohms. Of course, the eavesdropper can measure the same thing.
If Alice and Bob choose the same size resistor, then the eavesdropper knows what they have chosen, so that clock tick is useless for security. But if they choose a different size resistor, the eavesdropper cannot tell whether it is Alice choosing 10 ohms and Bob 1,000 ohms, or the reverse. Of course, Alice and Bob know, because they know which resistor they're choosing. This happens 50 percent of the time. Alice and Bob keep only the data from the clock ticks where they choose a different size resistor. From each such clock tick, they can derive one secret key bit, according to who chooses the 10-ohm resistor and who the 1,000-ohm. That's because they know who's choosing which and the eavesdropper doesn't. Do it enough times and you've got key material for a one-time pad (or anything else) to encrypt the communications link.
I grew up in a house with lots of kids and lots of discipline. Everything had to be in the right place. To this very day, I am the most organized person I know.
You'd think this would have led to a career in the military, but it didn't. I became a data base administrator and programmer. I've been hashing since I was a toddler but didn't know the name for it until I became an adult.
My father was always pissed off. Now my sister is always pissed off. I'd like to send her this paper, but I think that would just piss her off.
How does that prove that genetics (as opposed to identical age, same family, similar relationship to the family, close contact with each-other, etc., not to mention similar interpretations of the meanings of questions on a personality survey due to shared environment) was causal?
They were comparing monozygotic and dizygotic twins, which allowed them to measure to the extent that they were similar because of being raised in the same family at the same time. Comparing monozygotic twins raised in different families is another way to measure hertibility. Both have their issues, of course. But measures of the heritbility of personality generally do hover around .5 _+/- .1 in other studies.
The people I know who went into the military did so because they had no discipline, and wanted to get some.
Perhaps you are thinking of the Carter system (http://en.wikipedia.org/wiki/Multiway_switching#Carter_syste...), but the system in the article is the common system (http://en.wikipedia.org/wiki/Multiway_switching#Common_syste...).
I think the article does not mention the mains details because the neutral wiring never even enters the switch, as in the switch on the wall which he unscrewed as a child. Perhaps the diagrams would have been a bit better if the bottom part was
+---Lamp----Mains---+
instead of just +---Lamp------------+PS If you need a bit more beautiful simplicity go and read about NAND logic and realize that they are all you're ever going to need.
A wonderful demonstration of how this can be done can be found in the "The Elements of Computing Systems". Homepage: http://www1.idc.ac.il/tecs/
This course will show you how to build a simple but modern computer stack starting with nothing but simple NAND gates. Make sure to do the exercises and be prepared to invest a lot of time if you buy this book, otherwise you'll just waste your time.
I consider TECS and Charles Petzold's "Code" to be the most approachable books for those who want to understand what's really happening "under the hood" of your computer and can't recommend them highly enough.
No idea if there is a better way (except for using small microcontrollers).
So assuming strictly 2-wire only cable, there will always be waste. Fortunately for the world someone long ago noticed this, and they sell spools of wire. These spools of wire and electrical conduit are used by electricians to great advantage for keeping wasted wires to a minimum. (Also, it is arguably safer to have no runs of "unused" wire just sitting there, because of potential for mistaken "bare hots" or accidental misuses of the wire causing shorts and fires and whatnot).