Algorithm
These are six ideas from security and cryptography that shape how I think, whether I'm taking something apart or building something new.
-
Nothing made up
If I can't find something in the source or measure it myself, I call it a guess, because a confident guess is still a guess, and I'd much rather show you which parts are which.
-
Side channels
What a system says about itself is the least reliable thing about it, while timing, traffic and behaviour leak the truth, so I watch what it actually does rather than what it claims.
-
Analog hole
If your computer can play it, I can record it. That's because you can't hand someone the bits to view something and also stop them reaching those same bits, so I never rely on protection that only works as long as nobody looks closely.
-
Least privilege
Ask for the smallest amount of access that gets the job done, and give back whatever you don't need, since things that can do less are easier to trust, and that goes for people too.
-
Zero knowledge
The safest way to keep a secret is to never receive it in the first place, which is why if I don’t need to know something, I arrange things so I never do.
-
Kerckhoffs’s principle
A system should stay safe even when everyone knows how it works. Since security that depends on hiding the design is only hope, I explain my workings out in the open.

