by edibleEnergy · 9y ago · 0 comments
I really don't like the idea of storing anything really critical on a usb drive or an airgapped system.
I don't have an airgapped computer just laying around that I can store secrets on (and keep alive), and I don't trust a usb drive to last.
I really wish there was something like a clean way to store an encrypted printout that could be scanned years later if neccesary, ie a method of storage that I actually have faith would reliably survive for a decade or more.
Alternatively, if this is a "oh, shit" backup solution, you could just print and laminate the key, and enter it by hand years later, if necessary.
(This is just me thinking off the top of my head, mid-coffee. Ideas may be less valuable than they appear.)
I'll actually be doing this soon I think. Previously I used http://www.jabberwocky.com/software/paperkey/ which is quite good, but it's like two pieces of A4 filled with text which would be a huge pain to restore.
But either way, you can print to paper and store it in a fireproof safe (or probably better still -- a safety deposit box). There are lots of methods for ensuring printed paper survives for a long time -- if you google it, I'm sure you'll find more than you want to know.
My personal method is storing passphrase encrypted on multiple USB drives (they're cheap) and replacing them every year or so (they're cheap).
I think a more interesting question is: how do I provide access to my non-technical wife in case I am incapacitated or dead? Especially, how do I convince her not to put the passphrase on a sticky note on the fridge?
The replacing every year or so sounds like the most robust way to do it with current best practices but that requires a lot of maintenance.
That would probably be the most robust method to withstand fire, rust and anything else.
You'd need access to a laser metal cutting machine for that though - or drill each hole one by one heh.
Using IBM 80-column cards you'd need just about 10 cards to store a 4096-bit key with three subkeys in binary mode. More if using char mode (might be preferred if you have to type them using keyboard). The key can be condensed for backup if needed. OTP and/or Shamir's method could be added to the mix to improve security, increasing the number of cards required, but even without Shamir you can split the deck in half and store in different places.
Longer, possibly foldable, punch tape is yet another option. If it has the same width as IBM 80-column cards then most of DYI equipment designed for the latter can still be used. It can't be metal though, only paper or plastic.
A bit of obscurity helps too, it's not like a deck of cards screams "this is an important secret" or possible attackers have card scanners with them when they invade your backup facility (although they can make photos and decipher them later so it's not real protection, just a small bonus.)
Now, how would we solve a problem of rubber-hose cryptoanalysis with it?
I have found that splitting the key in 256 bytes chunks, then QrCoding them is sufficient for my usage:
https://gist.github.com/Gui13/5e5fe0c7c67d55373767d4965b1638...
With that script, a 2048 bits key in PEM is about 4 pages (+ 5 others if I print it in text format), which I can store in a safe, and conveniently rescan using zbarcam anytime.