Slashdot Mirror


Privacy With a 4096 Bit RSA Key — Offline, On Paper

HavanaF writes "Online backup is practical, but can it offer any privacy? The Dutch security company Safeberg developed an Offline Private Key Protocol, with an asymmetric key scheme. The protocol demands that the private (decryption) key be stored away from the 'source' computer, which presumably is 'too vulnerable.' The catch is that the private key needs to be fairly large to be secure: a 4,096-bit RSA key should suffice for some years. But how to store an 800-character key offline? Safeberg introduces a machine readable paper key, with the 4k-bit key crammed in a giant 2D Datamatrix barcode. This video on key strength tells the story."

60 of 232 comments (clear)

  1. What Happens When ... by WrongSizeGlass · · Score: 4, Funny

    ... you fold the paper your 2D key is on? Tears, that's what. Tears.

    1. Re:What Happens When ... by Sponge+Bath · · Score: 2, Funny

      Unfold it? Just be sure not to wipe your ass with it.

    2. Re:What Happens When ... by zippthorne · · Score: 2, Insightful

      Which brings to mind an important question: Why not just have the machine read the hex?

      --
      Can you be Even More Awesome?!
    3. Re:What Happens When ... by RobVB · · Score: 2, Insightful

      The company could store a last-resort backup at a different facility, and allow you access after checking a bunch of biometrics.

      --
      I'd rather you rationally disagree than irrationally agree.
    4. Re:What Happens When ... by wiredlogic · · Score: 2, Informative

      All matrix codes have enough redundancy to allow successful decoding when the image is partially damaged. Some have so much redundancy that you can tear them in half and still recover the contents.

      --
      I am becoming gerund, destroyer of verbs.
    5. Re:What Happens When ... by mpapet · · Score: 5, Informative

      Bar codes printed on media of all kinds are generally quite robust and not error prone. The printing device does not need to be special in any way. The reader does not need to be special in any way. Print the key on acid-free paper using a laser printer and store it for a looong time. I'll leave it up to the slashdot tifosi to declare how long it would last in a bank vault.

      Some nice ways to encode keys and store it as a symbol on paper here: http://www.adams1.com/stack.html

      Symbology is very non-sexy knowledge, but valuable in logistics.

      --
      http://www.maxineudall.com/2010/02/should-economists-be-sued-for-malpractice.html
    6. Re:What Happens When ... by dgatwood · · Score: 5, Informative

      Reading numbers is more error prone. With the bar code, there are presumably lots of check digits and other such loveliness encoded into it.

      As for folding it, what happens? Probably nothing. There are usually CRCs (or similar) and lots of other stuff in those 2D bar codes. This particular scheme, Data Matrix, is apparently highly redundant, allowing full recovery of the data even if (up to) 30% of the bar code is destroyed.

      http://www.tlashford.com/TLA/pages/Basic_sym/Symbol_overview.htm#DATAMATRIX
      http://en.wikipedia.org/wiki/Data_matrix_(computer)

      --

      Check out my sci-fi/humor trilogy at PatriotsBooks.

    7. Re:What Happens When ... by kill-1 · · Score: 3, Informative

      The paper key seems to contain 4x4 x 22x22 = 7744 bits. So can't tear it in half but almost.

    8. Re:What Happens When ... by maxwell+demon · · Score: 4, Insightful

      Reading numbers is more error prone. With the bar code, there are presumably lots of check digits and other such loveliness encoded into it.

      There's no reason you cannot insert check digits into the number as well.

      --
      The Tao of math: The numbers you can count are not the real numbers.
    9. Re:What Happens When ... by Retric · · Score: 2, Insightful

      Also, if you can recover most of the digits and know which ones are missing you can probably brute force the rest.

    10. Re:What Happens When ... by GaryOlson · · Score: 3, Insightful

      ...paper is just silly. It is less "safe" (as opposed to secure) than a USB key...

      Paper has hundreds of years of technology development behind it; what is the oldest USB key you have? Technology easily and readily exists to store quality archive paper nearly indefinitely in temperature/light/humidity controlled environments.

      I might even guestimate bar code technology will disappear long before a properly created and stored paper archive.

      --
      Every mans' island needs an ocean; choose your ocean carefully.
    11. Re:What Happens When ... by jd2112 · · Score: 2, Funny

      Bar codes printed on media of all kinds are generally quite robust and not error prone.

      Excepet at the supermarket, when you are in a hurry...

      --
      Any insufficiently advanced magic is indistinguishable from technology.
    12. Re:What Happens When ... by Darkness404 · · Score: 2, Funny

      In order to be really secure, the machine is powered off, placed in a locked, bombproof, uncrackable safe and left there. Anything else exposes risks.

      --
      Taxation is legalized theft, no more, no less.
    13. Re:What Happens When ... by Yvan256 · · Score: 4, Funny

      you can recover the data from the entropy in the universe.

      I tried do to that and all I got was "42".

    14. Re:What Happens When ... by martas · · Score: 2, Informative

      well, one problem is that error from reading 1 digit (or hexit, whatever) is much higher - 4 times, to be precise. if the likelihood of making an error in 1 bit reading the matrix is the same as p of error in one digit, then that works out fine. but i don't think that's the case.

  2. Another plausible scenario I have to watch out for by Merc248 · · Score: 3, Funny

    Guy holding knife and laxatives: "Poop the paper! Poop it now!"

    --
    "Hegelians, who love a synthesis, will probably conclude that he wears a wig." - Bertrand Russell
  3. key exchange by akirapill · · Score: 3, Funny

    I'll fax you a xerox of my public key. Is analog the new steam punk?

  4. How is this any more secure by Monkeedude1212 · · Score: 3, Insightful

    Than a 4096 Bit RSA Key that is stored on a standalone computer?

    1. Re:How is this any more secure by maxwell+demon · · Score: 2, Insightful

      Or stored on a standard external storage medium like, say, an USB stick?

      --
      The Tao of math: The numbers you can count are not the real numbers.
    2. Re:How is this any more secure by DragonWriter · · Score: 4, Informative

      Than a 4096 Bit RSA Key that is stored on a standalone computer?

      If you use the standalone computer for anything but storing the key, or fail to physically secure the standalone computer from access (separate to any physical security on any computer on which data resides that is secured with the key) it is obviously more secure to keep the key on paper, physically secured in something that isn't opened except to access the key.

      If you don't use the standalone computer for anything else, and have it separately physically secured, then for any reasonable use of the word "computer", it will probably be equally secure, and vastly less expensive to separately secure the key on paper, instead.

      Perhaps the more relevant comparison is separately securing paper vs. separately securing long-term electronic storage media. The sheet of paper will probably be cheaper in any case (though the price difference drops if you are using inexpensive electronic storage media rather than a dedicate computer), and will likely be more likely to be practically usable to access data a longer time into the future. Though in this case, a key factor is making sure the paper has the key in a human-readable form as well as a machine-readable form, since long-term availability of tools to read any particular machine-readable format is an issue. If you use text in an OCR-friendly font, the human readable format and the machine readable format can be the same.

    3. Re:How is this any more secure by SanityInAnarchy · · Score: 2, Insightful

      If you use the standalone computer for anything but storing the key,

      Same problem occurs if I write doodles on the paper -- though I fail to see how that reduces the security, only the reliability.

      or fail to physically secure the standalone computer from access

      Granted, it's easier to secure a piece of paper. But the same problem applies.

      More importantly, a closer analog to the paper is a USB thumb drive, which will fit just as neatly in a safety deposit box, or in your pocket, or (apparently) in your digestive system. It has flaws, but these would seem to be the exact same flaws the paper does -- for example, any machine on which I decrypt the data is necessarily a machine which will hold that key in RAM at some point, which means it's a point of failure.

      The most paranoid solution I know of in that vein, which I used for awhile, is to boot off a thumb drive (which has the stored keys) and use full-disk encryption on the hard drive. I'd be pwned if and only if someone implements a BIOS-level or hardware-level exploit, and somehow does it without me noticing -- I kept a pretty close eye on that machine, physically. (Tempest would probably work, but you're not going to be left alone with it for long enough to do anything -- best case, you steal it, but then you don't have the USB key in my pocket.)

      I stopped doing that when the USB key died, suddenly and completely, leaving me no way of accessing my data -- and my new laptop has an SSD, which is actually fast enough that crypto speed might be a limiting factor, whereas it definitely won't be on a 5400 RPM drive with any sort of modern CPU.

      will likely be more likely to be practically usable to access data a longer time into the future.

      Possible. We know a lot more about how paper degrades than we do about how data degrades (yet).

      Though in this case, a key factor is making sure the paper has the key in a human-readable form as well as a machine-readable form, since long-term availability of tools to read any particular machine-readable format is an issue. If you use text in an OCR-friendly font, the human readable format and the machine readable format can be the same.

      Apparently, this is a 2D barcode, with the hex version printed alongside it, so it fulfills both.

      --
      Don't thank God, thank a doctor!
    4. Re:How is this any more secure by Locke2005 · · Score: 2, Interesting

      Simple: you print the key in a blank spot on a random page of War and Peace. Good luck to anybody trying to find it without knowing the page number! Whereas in a standalone computer, any disk analysis software should be able to find the key. The point is, as in The Purloined Letter, you put the key in a place no one would think to look for it. Searching your computer and computer media is the _first_ thing anyone looking for the key is going to do! When they come in with a warrant to confiscate your computer, do you think that warrant covers your book collection as well? No, it just covers computers, hard drives, USB drives, CDs/DVDs, etc.

      --
      I've abandoned my search for truth; now I'm just looking for some useful delusions.
    5. Re:How is this any more secure by kalidasa · · Score: 2, Informative

      There's a book that's 2200 years old. I don't mean the story (or in this case, poem) is 2200 years old, I mean the *piece of paper* (or in this case, papyrus) on which someone copied the (2400 year-old) poem is 2200 years old. In the right conditions, archival quality paper will last a *lot* longer than any electronic medium.

    6. Re:How is this any more secure by mysidia · · Score: 2, Insightful

      How about SmartCards and a smartcard reader?

      Have the card itself execute decryption of the symmetric key without revealing the private key to the PC, when it's read.

      It will probably be cheaper than the uber-expensive specialized scanner+software from this vendor, you'll need to be able to scan the "cheap" paper key, anyways

      And more secure in that the private RSA key is not subject to being stolen from PC RAM, or by modifying the decryption program on the PC to capture the key.

  5. Re:In 2006, a guy recited Pi to 100000 places... by hansraj · · Score: 2, Funny

    Nothing, but that poor guy will have to remember passwords for everyone!

  6. no thanks my Hard drive is too big by Spy+Handler · · Score: 3, Insightful

    Online backup is practical

    not for my 1.5 terabyte HDD which is about half full.

    Right now backing up from hard drive to hard drive takes forever (hours). How the fuck am I gonna back up to a remote server over the internet at 60 kbytes/sec?

    1. Re:no thanks my Hard drive is too big by toastar · · Score: 3, Funny

      How the fuck am I gonna back up to a remote server over the internet at 60 kbytes/sec?

      you can get about 17 MBytes/Sec with a 1.5TB through USPS

    2. Re:no thanks my Hard drive is too big by dziban303 · · Score: 2, Insightful

      Yeah, but since when has the post office ever delivered something in one day? I'd say 4MB/s is more likely.

    3. Re:no thanks my Hard drive is too big by Tubal-Cain · · Score: 2, Insightful

      Make the first backup locally before moving it to the remote site?

    4. Re:no thanks my Hard drive is too big by dangitman · · Score: 2, Funny

      you can get about 17 MBytes/Sec with a 1.5TB through USPS

      Liar! 17 Megabyte files always take 20 minutes to copy. Always.

      --
      ... and then they built the supercollider.
    5. Re:no thanks my Hard drive is too big by martas · · Score: 2, Informative

      Never underestimate the bandwidth of a truck full of tapes hurling down the highway - Andrew S. Tanenbaum

    6. Re:no thanks my Hard drive is too big by borgboy · · Score: 2, Funny

      Those who would sacrifice latency for bandwidth deserve neither.

      --
      meh.
  7. How much added security? by SmilingBoy · · Score: 2, Interesting

    If the source computer is vulnerable, the private key will be vulnerable as well as soon as you use a device connected to the compromised computer to scan it.

    1. Re:How much added security? by owlstead · · Score: 3, Informative

      Yes, whenever you use a key it becomes more vulnerable. This only adds security to the storage, not the use. It's amazing how many times this kind of thing is forgotten, e.g. when using an ultra-secure USB device on a computer with zero protection. It becomes even more "interesting" when you have to use the key in an automated system - obviously this design is not meant for continuous use :).

  8. Smartcard ? by KermitTheFragger · · Score: 2, Interesting

    After surfing around a bit on the source site I can't find any compelling reasons why I should use a giant unwieldy printable 2D Barcode instead of a smartcard ? A smartcard reader costs 25 bucks now a days so that cant be much of an obstacle.

  9. Don't use datamatrix by GigsVT · · Score: 4, Informative

    Datamatrix is the Gif of the barcode world. It has a bunch of patents covering it.

    PDF417 does mostly the same thing, can be read with a laser (instead of an imager) and was designed to be open source and patent free from the beginning.

    --
    I've had enough abrasive sigs. Kittens are cute and fuzzy.
    1. Re:Don't use datamatrix by Kostya · · Score: 3, Interesting

      The wikipedia article on DataMatrix (http://en.wikipedia.org/wiki/Data_Matrix#Patent_issues) seems to imply it is unencumbered--perhaps I'm misunderstanding something?

      Prior to the expiration of U.S. Patent 5,612,524, intellectual property company Acacia Technologies claimed that Data Matrix was partially covered by its contents. As the patent owner, Acacia allegedly contacted Data Matrix users demanding license fees related to the patent.

      Cognex Corporation, a large manufacturer of 2D barcode devices, filed a declaratory judgment complaint on March 13, 2006 after receiving information that Acacia had contacted its customers demanding licensing fees. On May 19, 2008 Judge Joan N. Ericksen of the U.S. District Court in Minnesota ruled in favor of Cognex. The ruling held that the '524 patent, which claimed to cover a system for capturing and reading 2D symbology codes, is both invalid and unenforceable due to inequitable conduct by the defendants during the procurement of the patent.

      Notably, since the '524 patent expired in November 2007, a ruling against Cognex wouldn't have affected current use of Data Matrix anyway. However, it would have established that use of Data Matrix prior to November 2007 could potentially be covered by the '524 patent.

      --
      "Doubt your doubts and believe your beliefs." -- Switchfoot, Ode to Chin
    2. Re:Don't use datamatrix by dangermonkeyboy · · Score: 5, Informative

      No offense, but this information is wrong. Data Matrix is completely unencumbered by patents. For one thing, it was released into the public domain by its inventor, and for another it's so old that even if there had been patents they would have expired by now.

      There was one "IP" company that made some noise in 2006-2007 claiming to cover some of the underlying technology in their patent portfolio, but they were handed their hats in court. I followed the issue very closely, even stopping distribution of my Data Matrix open source project for a while, pending this outcome. But rest assured that Data Matrix is unencumbered by patents and safe to use in your projects.

  10. Re:First Po.. by gadget+junkie · · Score: 3, Insightful

    Hang on! let me get my giant barcode out of my pocket!

    that reminds me of Robin Williams doing his Adam and Eve sketch....."Stand back honey, I do not know how big this can get!!"

    --
    "If a boss demands loyalty, give him integrity. But if he demands integrity, give him loyalty." (John Boyd, 1927-1997)
  11. Re:Another plausible scenario I have to watch out by Merc248 · · Score: 5, Funny

    "Defecate thy papyrus!"

    --
    "Hegelians, who love a synthesis, will probably conclude that he wears a wig." - Bertrand Russell
  12. And this is practical, how? by he-sk · · Score: 3, Insightful

    Do people actually use the systems they produce and sell?

    --
    Free Manning, jail Obama.
    1. Re:And this is practical, how? by Arthur+Grumbine · · Score: 3, Funny

      Safeberg also announced that their official position is that "dog food tastes terrible".

      --
      Now that I think about it, I'm pretty sure everything I just said is completely wrong.
  13. Backup by pavon · · Score: 2, Insightful

    Since the purpose of this is to backup critical data, you want to make darn sure that you never loose the key, or all the data is worthless. Storing pieces of paper securely and safe from disaster is something that we have been doing for years, and you don't have to look very far for a solution. On the otherhand, most safes, fire boxes and safety deposit boxes will still get hot enough enough in a fire to destroy any digital media stored in them.Paper offers a simple, traditional backup while something like a smart-card could be used on a day to day basis.

  14. Re:In 2006, a guy recited Pi to 100000 places... by localman57 · · Score: 2, Insightful

    So what could be so hard about memorizing a measly 800 or so characters?

    Pi might be hard. But for encryption keys, It's not hard at all. You just repeat "12345" one hundred and sixty times.

    Now, I want half of you to mod this funny, because it is. I want the other half of you to mod it insightful, because we all know that when you put 4096 bit encryption into the hands of an average person, they really do type 12345 one hundred and sixty times.

  15. Ummmm.... by jemenake · · Score: 3, Interesting

    I'm not sure I grok this notion of not storing the key with the source machine. I mean... if I can get to the machine you backed up... I don't really need to get to the backup, do I? I've got fresher data right there in front of me.

    Now, if you're really trying to protect some kind of historical record of how your data has progressed over time, then that would be a reason why access to the source computer still didn't get the intruder access to what you're trying to protect... but that's a very special case.

    Dunno. Maybe I'm just missing the point.

  16. Idiotic by evilviper · · Score: 3, Funny

    This makes absolutely no sense. Smart cards have been around for many years now. There, you NEVER give ANYONE or anything access to your private key. Challenge-response, one-time-passwords, tokens, etc, etc. Putting it on paper is LESS SECURE than sticking it on a thunb drive. Then at least it can't be stolen by taking a picture...

    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  17. Re:Lets go old school by azenpunk · · Score: 2, Funny

    "What's your password?"

    "Umm....let's see. Del Monte canned peaches in light syrup, kraft macaroni and cheese, hunts canned pizza sauce, campbels chicken and noodle soup"

    "We need a Safeway, tape, scissors and a barcode reader!"

  18. Pants? Hmm! by Zancarius · · Score: 2

    Hang on! let me get my giant barcode out of my pocket!

    That's just the thing... a printed key is just one washing machine away from complete and total disaster at the data center.

    --
    He who has no .plan has small finger. ~ Confucius on UNIX
  19. paperkey and libdmtx by c_g_hills · · Score: 3, Informative

    See http://www.mail-archive.com/gnupg-users@gnupg.org/msg10827.html.

    The original paperkey software takes out the redundant key material for a smaller amount of data. You can restore the original key by combining the output with the public key.

    To encode:

    gpg --export-secret-key (thekey) | paperkey --output-type raw | dmtxwrite -e8 -f pdf > my_pdf_file.pdf

    You can pass pdf, eps, svg, etc, to the -f option. Use 'dmtxwrite -l' to get a list of all supported image formats.

    To decode:

    dmtxread -N1 my_pdf_file.pdf | paperkey --pubring ~/.gnupg/pubring.gpg > my_new_secret_key.gpg

  20. Re:In 2006, a guy recited Pi to 100000 places... by jamesh · · Score: 2, Funny

    when you put 4096 bit encryption into the hands of an average person, they really do type 12345 one hundred and sixty times.

    I'm obviously above average then - i'd use cut & paste to do the job in seconds!

  21. I'll hold out by egcagrac0 · · Score: 2, Interesting

    ... until there's a 640kbit key. 640k ought to be enough for anybody.

    But seriously, it was just a few years back when we though 128bit keys were unbreakably long. Now 2048bit is standard, and about to get broken. 4096bit isn't enough right now. 16kbit is just about right, but that will get broken in early 2015.

  22. Hang on a minute by Nazlfrag · · Score: 2, Funny

    Does it come with a sticky backing so I can put it next to all the passwords I wrote down?

  23. I'll save you some money by dangermonkeyboy · · Score: 4, Informative

    $ gpg --export | dmtxwrite --encoding=8 --format=PNG | lp

    To be honest, I thought trusted paper keys were already common knowledge among geeks:

    http://en.wikipedia.org/wiki/Trusted_paper_key

  24. Re:In 2006, a guy recited Pi to 100000 places... by Sir_Lewk · · Score: 3, Informative

    Problem is, this is an RSA key, it can't just be any random string of bits, it has to be two very large prime numbers. Users won't be chosing a 4096bit key, it will be generated for them.

    --
    "linux is just DOS with a UNIX like syntax" -- Galactic Dominator (944134)
  25. different kinds of cryptographic keys by 0ptix · · Score: 2, Informative

    i think you're mixing up key length for symmetric ciphers (like AES, 3DES, Blowfish, etc.) which are generally quite short like 128 or 256 bits and key lengths for _asymetric_ cryptosystems which vary much more in length and in the case of RSA are somewhere closer to 2048 and 4096.

    The reason is that for symmetric ciphers we _believe_ to be secure the best an attacker can do is brute force the key space. so that means brute forcing 2^128 or 2^256 possible keys. That's a hell of a lot of work. with current technology probably infeasible.

    but for asymmetric schemes it's not as straightforward. To get a glimpse of why this is think about RSA keys. The public key is an exponent e and an integer n which is the product of two large primes. Now not every string of 4096 is actually represents such a pair number of numbers. (in particular not every bit-string is the product of two primes). so not every string of that length is a valid key. so brute forcing the key space doesn't mean trying every possible string of that length. just the ones which are the product of two primes which is a fair bit less.

    Another reason for comparatively longer keys is this. In generally, for many asymmetric cryptosystems there are various attacks known which are still super-polynomial (i.e. inefficient) but are never the less sub-exponential which is what a brute force key search would be. so you have to adjust your key length to reflect these faster attacks even if brute forcing wouldn't be feasible even for shorter keys. (i think some examples of such attacks for factoring (which would break RSA) are the Pollard-Rho method, varients of Quadratic Sieve algorithm, and the Eleptic Curve method.)

  26. Re:In 2006, a guy recited Pi to 100000 places... by 93+Escort+Wagon · · Score: 2, Funny

    It takes a special kind of mind to do that.

    And that said... I memorized a 48 character hexadecimal password, in case I ever need one. :P

    I hope it wasn't F80FFA585E9867B804D998A2ED65E55BFC352C3C500684CC, cuz that's the one I'm using.

    --
    #DeleteChrome
  27. Re:hide the key in a book: great idea! by mysidia · · Score: 2, Interesting

    You convert it into a Base-52 or Base-26 representation, so all keybits are represented by ordinary letters such as A-Z (you might expand it a little to include common punctuation marks), and underline different characters on the page that correspond to digits of your key..

    Also, you can XOR your 4096 key, by a truly random 4096 bit value.

    Destroy the original key, and print the random number and the XOR result in two different books at completely different places.

    You can XOR it a few more times, and divide the key into 5 or 6 pieces.

    Then go to the library with a pencil one night, and (covertly) store a copy of your key in various books.

    Making plenty of redundant copies of course, and visiting multiple libraries (for fear that part of your key would be unavailable due to someone else having checked out one of your bits).

  28. Re:In 2006, a guy recited Pi to 100000 places... by rwjyoung · · Score: 2, Funny

    Damn thats the same combination I use on my luggage!

    --
    Watch me build my house
  29. Not exactly new by ei4anb · · Score: 2, Insightful

    I punched my private key onto 80 column punched cards for offline storage back in 1979. It was the only way to keep a key private on a mainframe where the operator could read all files.

  30. Re:Another plausible scenario I have to watch out by Red+Flayer · · Score: 3, Interesting

    I like a little alliteration in my catchphrases. How about:

    Void thine vellum!
    Oust thine onion skin!

    And that's about all I can come up with.

    Except maybe "Shit the sheet", but that doesn't sound as nice.

    --
    "Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai