Slashdot Mirror


More on Bernstein's Number Field Sieve

Russ Nelson writes "Dan Bernstein has a response to Bernstein's NFS analyzed by Lenstra and Shamir, entitled Circuits for integer factorization. He notes that the issue of the cost of factorization is still open, and that it may in fact be inexpensive to factor 1024-bit keys. We don't know, and that's what his research is intended to explore."

151 comments

  1. Cool but by DinZy · · Score: 0, Redundant

    A quantum computer could do this in no time. Of course someone would have to build a really big one to do a 1024 bit number.

    1. Re:Cool but by Uller-RM · · Score: 2

      Actually, you need double the number of bits just for a basic implementation of Shor's algorithm. It works by starting with a superposition of numbers and taking the log of that, then collapsing the entangled result, which forces the original superposition into a subset of reverse logs. The reverse log problem's one of the hardest in computer science, and solving that has the nice side effect of making factorization trivial.

      In practice you'd need CONSIDERABLY more than 2048 bits. A superposition of numbers is really difficult to keep stable because of noise leaking from the outside world into the system - in practice you need extra bits for error correcting codes.

    2. Re:Cool but by SamBeckett · · Score: 1

      Could you elaborate more on the "reverse log" problem... If you know the base and the result of [Log x], whats the problem?

    3. Re:Cool but by ninkendo84 · · Score: 1

      A 1024 bit key yields 1.8*10^308/ln(1.8*10^308) = 2.5*10^305 different prime numbers. which is 2.5*10^228 times more numbers than there are atoms in the known universe. to truly break 1024 bit encryption, it requires some pretty smart programming, not just fast computers. to brute force such a code would take half an eternity by any computing standards.

      --

      $ make love
      make: don't know how to make love. Stop
    4. Re:Cool but by God!+Awful · · Score: 4, Informative


      Could you elaborate more on the "reverse log" problem... If you know the base and the result of [Log x], whats the problem?

      The OP got his terminology wrong. It's the discrete log problem that's hard.

      Pick a number (e.g. 3.81482), plug it into your calculator and press e^x (result = 45.36874). Now it's easy to get back the original number by using the "ln" key. But imagine instead that you only had the fractional portion of the result (.36874). Now it's next to impossible to figure out what the original number was. The discrete log problem is basically the same this, but using discrete arithmetic instead of real arithmetic.

      -a

    5. Re:Cool but by Uller-RM · · Score: 3, Interesting

      What happens if you don't know the base? ^_^

      Shor's algorithm requires a bit of number theory to prove its correctness, but the first part is the important one. You need 2n+1 qubits to factor a n-bit number - two n-bit registers and a keeper bit. (Note, I'm running from memory here, not my notes, so I may have a step wrong.)

      You initialize the first with the Hadamard transform, creating a superposition of all possible n-bit numbers. You then raise that superposition to the power of your number to factor, modulo 2^n, and store the result in the second register, which will itself be a superposition (and entangled with the first register). You then measure the second register - and as long as it doesn't measure to be zero, its collapse will trigger a partial collapse in the first register, resulting in a set of bases which are congruent modulo the second register's collapsed result. You then perform a discrete Fourier transform on the first register, and the rest is all logic and repetition.

    6. Re:Cool but by Anonymous Coward · · Score: 0

      Or you could get incredibly lucky and derive the correct key in a few seconds.

    7. Re:Cool but by Anonymous Coward · · Score: 0

      I modded this up, but I'll be goddamned if I could tell if he's making this up.

    8. Re:Cool but by God!+Awful · · Score: 2


      What happens if you don't know the base? ^_^

      If the base is kept secret then it's not public key crypto any more, is it.

      I guess the other reply proves that you can't moderate and post to the same conversation, even if you post as AC.

      -a

    9. Re:Cool but by Uller-RM · · Score: 1

      It's actually a neat way of doing it.

      There's two big things a quantum computer can do effortlessly that a normal one can't. (This doesn't mean a normal one can't emulate one, mind.) The first is superposition - a n-bit register can hold multiple values at once. In fact, more than that - it can hold them in unequal proportions.

      The odd bit about a superposition is that if you measure it, it'll "collapse" into one of its possible values according to probability, after which it's identical to that value. 100% probability.

      The other thing a QC can do is entanglement. In theory any quantum system is entangled, but when people talk about it with respect to algorithms, they mean this: if you run an algorithm on a superposition of values, you'll get back out another superposition. However, the input and output registers are now "entangled" and any change to one will be instantaneously reflected in the other.

      Shor's algorithm uses this last property to effectively do operators in reverse. One way you can factor a number is by finding out if its log in a given base is 0 in a certain modulo. So, you just create a superposition of all possible n-bit numbers, raise them to that base, then measure the result. A certain subset of those numbers will have a integral log - when you measure the results and get a single log, the source (which was previously all n-bit #s) will then become all n-bit numbers that have a log base N.

      (This is all gross oversimplification, but it's still pretty accurate. To be fully accurate I'd have to start writing down tensor products of matrices, and well, Slashdot sucks. ;) )

    10. Re:Cool but by colmore · · Score: 4, Informative

      discrete logs actually have to do with modular spaces (remainder math, in mod 4, you divide any number by 4 and take the remainder. counting in mod 4 goes like: 0, 1, 2, 3, 0, 1, 2, 3...)

      the discrete log problem is specifically, given integers y, g, p, find a (preferably minimal)solution x to the problem

      y = g^x mod p, 0 = y p

      actually the problem is more general than that, but that's the case that most people talk about and has direct application to cryptanalysis.

      it doesn't look too hard, but sit down and try. the algorithms that solve the problem amount to basically highly erudite mathematical guess-and-check. if you can find a P time solution to this, you're a billionaire.

      It's also a fun problem because, like Fermat's Last Theorem, Goldbach's Conjecture, and the 4-Color problem, it's easy for an amateur to work on, understand, and make some elementary discoveries and proofs, but the problems have difficulties that test the furthest extent of mathematical knowledge.

      here's a fun, related problem:

      if you shuffle a 52 card deck perfectly 7 times (divide the deck exactly in half, always have the top half drop the first card, drop exactly one card after another) then you end up with the original order of the deck. Given a deck of n cards, how many shuffles are required for the same effect?

      --
      In Capitalist America, bank robs you!
    11. Re:Cool but by blair1q · · Score: 2

      That doesn't make sense.

      Did you mean "0 = y mod p"?

    12. Re:Cool but by God!+Awful · · Score: 2


      if you shuffle a 52 card deck perfectly 7 times (divide the deck exactly in half, always have the top half drop the first card, drop exactly one card after another) then you end up with the original order of the deck. Given a deck of n cards, how many shuffles are required for the same effect?

      Okay, I give up. I can see how a fair shuffle can be regarded as a multiplication by two mod 51 for any given card (since the first card in the deck and the last card are both zeros). The loop starting at 1 (second card in the deck) goes: 1,2,4,8,16,32,13,26. So after 7 shuffles it seems like the card that was originally at position 1 will be in position 26. What gives?

      -a

    13. Re:Cool but by Scott+Carnahan · · Score: 1

      the discrete log problem is specifically, given integers y, g, p, find a (preferably minimal)solution x to the problem

      y = g^x mod p, 0 = y p

      g really ought to be a generator of (Z/pZ)* if you want the discrete log to be well-defined.

      if you shuffle a 52 card deck perfectly 7 times (divide the deck exactly in half, always have the top half drop the first card, drop exactly one card after another) then you end up with the original order of the deck.

      Wrong. The shuffle you describe produces a 52-cycle in S_52. In particular, you have to repeat it 52 times to get the original order. However, if the bottom half drops the first card, you get 2 fixed points, a transposition, and 6 8-cycles, meaning 8 shuffles are required.

      I don't see many patterns that are immediately obvious for n cards, except for the 2m-periodicity when n=2^m. Is there a general solution?

      --
      "Your notation sucks!" -- Serge Lang (1927-2005)
    14. Re:Cool but by kryps · · Score: 1

      Give this guy a break.

      It takes 8 perfect shuffles. To continue the series you outlined (2^n mod 51, n=0,...): 1,2,4,8,16,32,13,26,1.

      -- kryps

    15. Re:Cool but by God!+Awful · · Score: 2

      Well, sure. I figured that out before I posted, and later confirmed it with a google search (I was still trying to figure out the puzzle without "cheating"). But here he goes asking me to generalize to an N card deck and the one data point he gives me is wrong. I spent quite a while looking for relations between Euler's phi function and the number 7 before I thought to confirm this result. Plus when I eventually looked the problem up, it doesn't look like there's a closed form solution anyway.

      -a

    16. Re:Cool but by Scott+Carnahan · · Score: 1

      Okay, I see why your puzzle is related to the discrete log problem. You're looking for the order of 2 in (Z/(n+1)Z)* with the shuffle you described, or (Z/(n-1)Z)* with the shuffle you meant to describe. It doesn't seem to work too well with odd n.

      --
      "Your notation sucks!" -- Serge Lang (1927-2005)
  2. Re:Summary by Anonymous Coward · · Score: 0

    Slashdot has confused itself with a respectable scientific journal.

    This happens every now and then.

    Your Microsoft bashing/music stealing/piracy justifying/Linus fellating article will be along shortly.

    Your patience is appreciated.

  3. Headhunters visiting the site? by Blue+1ce · · Score: 1

    So using 4096 bit encryption wasn't as paranoid as everybody told me...

    Quantum Computers, Advances in Number Theory; looks like this decade will become interesting.

    BTW Could the admin of http://cr.yp.to please check the serverlogs for any visitors from nsa.gov?

    1. Re:Headhunters visiting the site? by Anonymous Coward · · Score: 0

      Using encryption at all is evidence of paranoia.

      What do you possibly do that you think someone would be interested in you and your files?

    2. Re:Headhunters visiting the site? by Anonymous Coward · · Score: 0

      it also means you are a terrorist

    3. Re:Headhunters visiting the site? by Anonymous Coward · · Score: 0

      My wife could use my vast cache of encrypted pornographic movie files to prove that I was unfaithful in our marriage. Or the government could decrypt the messages I've been sending to my friends on where to download the latest top40 mp3's off my secret FTP site. If either of these things happened the consequences could be disastrous.

    4. Re:Headhunters visiting the site? by gr · · Score: 2
      So using 4096 bit encryption wasn't as paranoid as everybody told me...
      Actually, from my reading of the analysis of DJB's original statement, you're closer to being at risk.
      BTW Could the admin of http://cr.yp.to please check the serverlogs for any visitors from nsa.gov?
      Which would prove what, exactly? The NSA doesn't get AOL CDs like the rest of us?
      --
      Do you have a /. uid shorter than five digits? No? Then piss off.
    5. Re:Headhunters visiting the site? by Anonymous Coward · · Score: 0

      Owning and viewing pornography is not proof of unfaithfulness. You can always turn any allegation regarding porn around and use it against her, claiming that it was her alienation of affection that drove you to those extreme measures. You keep the kids, house, car, and money. She gets crap for running out on you.

      If you are involved in music piracy, then I could see how you'd want to obfuscate your illegal actions to avoid detection.

    6. Re:Headhunters visiting the site? by Blue+1ce · · Score: 2, Funny

      OK, you're right. Or as DJB puts it: "This is revisionist history, not a technical dispute."

      But you're wrong concerning the AOL CDs. One of NSA's missions is "protection of U.S. information systems". So no AOL allowed...

    7. Re:Headhunters visiting the site? by larry+bagina · · Score: 3, Funny
      Quantum Computers, Advances in Number Theory; looks like this decade will become interesting

      I'll say! Arthur Andersen has advanced number theory further than anyone had imagined it could go!

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

  4. some people... by Anonymous Coward · · Score: 0


    ....Really need to get outside more

  5. Damn straight LA is the bottleneck by Anonymous Coward · · Score: 0

    "Why is it difficult to carry out a 1024-bit NFS calculation? Because, they claim, 1024-bit NFS sieving is difficult. "

    NFS can be helped by distributed computing but the linear algebra can't. That's why the linear algebra is the real bottleneck and not the NFS if you had enough resources.

    1. Re:Damn straight LA is the bottleneck by paladin_tom · · Score: 0

      The key phrase is if you had enough resources.

      Crypto has always been a battle of resources between encoder and cracker. RSA works specifically because, as another post pointed out, factoring an n-bit number is an O(2^n) operation (hence factoring polynomials back in high school is a royal pain). This gives the edge to the encoder, because by increasing his resource usage in a linear fashion, (s)he forces the adversary to pay an exponential increase in resources.

      That's why people introduce tricks like this NFS sieve -- the adversary must find a way to cheat.

      Of course, since computing power tends to increase exponentially with time, we keep needing bigger keys. And if quantum computing is developed, it'll be a whole new ball game (since the adversary will have an exponential amount of resources).

      --
      #define sig "Every social system runs on the people's belief in it."
    2. Re:Damn straight LA is the bottleneck by wirelessbuzzers · · Score: 1

      And if quantum computing is developed, it'll be a whole new ball game (since the adversary will have an exponential amount of resources).

      Not really. Quantum computing is not all that. It does not give the user an exponential amount of resources, but it does speed up factoring by a ridiculous amount, breaking RSA. There is no currently published algorithm to break, say, DH/DSS (i.e. discrete logarithms) with it.

      That said, it isn't clear that quantum computing is actually practical. It certainly is not parallelizable, and it may turn out to be computationally harder to get the atoms in the right states than it would be to factor your number in the first place. But use DH just to be sure.

      --
      I hereby place the above post in the public domain.
    3. Re:Damn straight LA is the bottleneck by Xilman · · Score: 1
      NFS can be helped by distributed computing but the linear algebra can't. That's why the linear algebra is the real bottleneck and not the NFS if you had enough resources.

      Not quite true. There are now implementations of parallel blocked-Lanczos which run very successfully on Beowulf clusters of relatively ordinary machines. The implementation I use was written principally by Peter Montgomery (who, incidentally, is an employee of Microsoft Research) and a cluster of 16 dual-proc PIII-1000 connected by gigabit ethernet yields performance comparable to the high-end Cray C90 which was used for many large-scale NFS factorizations over the last few years. We already know how to improve the implementation to the point where we expect to be able to double the speed or more.

      Paul

      --
      Lasciate ogne speranza, voi ch'intrate
  6. So what? by Dthoma · · Score: 1

    If you're worried about your 1024-bit keys being broken, switch to using 4096-bit keys. Until quantum computers are developed, factorisation will still remain a near-exponential/superpolynomial time activity, and 4096-bit keys will be safe until the military discovers how to harness quantum computing.

    --

    Note to M1-ers: a curt but otherwise insightful message is not "Flamebait" or "Troll".

    1. Re:So what? by tomstdenis · · Score: 2, Informative

      Or you can be smart and stop using RSA. In the realm of things the DLP over GF(p) is harder to solve then the IFP.

      Even harder is the DLP over eliptic curves. With proper curves [e.g. NIST supplied ones] the best attacks on the math take SQRT work which means a 256-bit ECC key will take roughly 2^128 work to solve for the private key [from the public key], provided the cryptosystem is setup correctly [yadada].

      Tom

      --
      Someday, I'll have a real sig.
    2. Re:So what? by stewby18 · · Score: 1
      4096-bit keys will be safe until the military discovers how to harness quantum computing.

      History is littered with the bodies of people who think that a cryptosystem is unbreakable, or essentially unbreakable. Just because we can't break something now doesn't mean a solution won't be found next year, or even next month.

      There's a reason that most cryptosystems aren't proveably secure; they aren't secure. It's all a gamble that the next mathematical breakthrough in whatever field will be far enough down the road not to matter to you.

      Thinking anything else, or becoming complacent with a seemingly secure system, is little better than no cryptography at all.

    3. Re:So what? by cheese_wallet · · Score: 2, Funny

      What we need is an encryption system that isn't based on math.

    4. Re:So what? by kistel · · Score: 1

      Heh, how do you know they don't have it? Do you think they would announce it right away? The military has always been ahead of the rest of the world.

      Anyways, once i read a theory that suggested using a graph-theory based encryption scheme. The idea was interesting, particulary because - as others mentioned - we simply have no proof that factorization is an NP-full task, while on the ther hand, we _have_ proof that the graph theory has some problems like this (e.g. finding Hamilton-circles IIRC).

    5. Re:So what? by Xilman · · Score: 1
      In the realm of things the DLP over GF(p) is harder to solve then the IFP.

      True, but arguably not significant. With the NFS, both problems have the same asymptotic difficulty. Further, the DLP isn't much harder than the IFP in practice. Solving instances of the N-bit DLP is approximately as hard as solving the IFP with N+30 bits.

      Even harder is the DLP over eliptic (sic) curves.

      Very much the case at present, though more and more curves are found to be vulnerable to variants of known attacks, and more attacks are being discovered all the time. There were some interesting papers at the ANTS-V and ECHIDNA conferences held earlier this month in Sydney.

      Paul

      --
      Lasciate ogne speranza, voi ch'intrate
    6. Re:So what? by tomstdenis · · Score: 1

      True, but arguably not significant. With the NFS, both problems have the same asymptotic difficulty. Further, the DLP isn't much harder than the IFP in practice. Solving instances of the N-bit DLP is approximately as hard as solving the IFP with N+30 bits.

      While in practice the time-wise estimates are the same the space-wise are not. Over a single large prime group the DLP takes p times more memory to solve [where p is the # of bits in the group modulus]. Also the matrix ops in the final stage are not with bits but with p-bit integers.

      This makes the last stage "practically" way more difficult than it is for the IFP.

      As for type sof curves, [no joke here], I'm not an ECC expert. I just used what NIST gives out as they are more traditional types of curves.

      Naturally one must keep an eye open for thr horizon of new attacks but for the time being ECC appears to be way harder than RSA or DH[over GF(p)].

      One little rant-addon. You can do DH over ECC despite what most PGP drones want you to think. This really p's me off. Add ECC support to GPG already!

      Tom

      --
      Someday, I'll have a real sig.
    7. Re:So what? by volsung · · Score: 1

      But won't you need a lot of monkeys and typewriters?

    8. Re:So what? by cheese_wallet · · Score: 2

      You took the words out of my mouth.

    9. Re:So what? by MarkGriz · · Score: 1

      Microsoft employed a great deal of monkeys and typewriters as part of their original business plan to develop encryption technologies, but accidentally developed Windows instead. Ironically, much to their embarrassment, Windows ended up with very little in the way of security or encryption.

      --
      Beauty is in the eye of the beerholder.
  7. Damn by Weffs11 · · Score: 0, Offtopic

    Should have taken more then trig, then I might understand the story.

  8. Fascinating Discussion... by gweihir · · Score: 5, Interesting

    ... this is. I especially like the mixture of theoretical, practical and yet unknowen aspects of the whole problem.

    My impression is that so far DJB has done a good job of being honest and clear. Although "the press" is sadly lacking in experts these days and often will not even notice they have not understood the problem. I have to admit that I did not quite follow
    Lenstra-Shamir-Tomlinson-Tromer, but I think DJB's original proposal is still the best source on what is going on. No real surprises so far for practical purposes, but I will follow this closely.

    Incidentally I don't fear for my 4096/1024 bit ElGamal/DSA gpg key in the near future. I am confident that installing a keyboard sniffer without me noticing is far easier than breaking that key.

    --
    Most ACs are not even worth the keystrokes to insult them. Be generically insulted and ignored otherwise.
    1. Re:Fascinating Discussion... by Anonymous Coward · · Score: 0

      Actually the main danger with ElGamal is that I believe it's one of the Public Cryptosystems that hasn't yet been proven to truely rely on the log problem therefore while installing a keyboard sniffer would still be easier there is a chance that the whole algo may totally unravel sooner than the solution of the log problem... (I cannot check my notes at the moment hopefully someone can check for me)

    2. Re:Fascinating Discussion... by First+Person · · Score: 2

      Incidentally I don't fear for my 4096/1024 bit ElGamal/DSA gpg key in the near future. I am confident that installing a keyboard sniffer without me noticing is far easier than breaking that key.

      I concur. I find this device far more threatening than any cluster of machines at the NSA.

      --
      Given one hour to live, the student replied: "I'd spend it with professor FP who can make an hour seem like a lifetime."
    3. Re:Fascinating Discussion... by AlgUSF · · Score: 2

      Then use a USB keyboard.....

      --


      I want my rights back. I was actually using them when our government stole them after 9/11.
    4. Re:Fascinating Discussion... by jlcooke · · Score: 1

      ElGamal/DSA are based on discrete logs, not factorization. So I'd say you're safe from DJB for now.

      But it is suspected that factorization is AS STRONG as the DL problem. But no proofs exist yet.

      It should be assumed however that if the integer DL is solved, all PK crypto (RSA & factor based ciphers included) would fall with ECC and GF(2^x) DLs to fall shortly after...this is just the general sentiment in the field. FYI

      JLC

    5. Re:Fascinating Discussion... by gweihir · · Score: 2

      ElGamal/DSA are based on discrete logs, not factorization. So I'd say you're safe from DJB for now.

      That is the second reason I feel pretty save. Just trying to see whether anybody notices...

      I agree that the if somebody gets a foot into DL anywhere, they likely can open the whole door and presumably some other doors too. Not my field of expertise though.

      --
      Most ACs are not even worth the keystrokes to insult them. Be generically insulted and ignored otherwise.
  9. Ever heard of The Sermon on the Mount? by Anonymous Coward · · Score: 0

    Owning and viewing pornography is not proof of unfaithfulness.

    Ye have heard that it was said by them of old time, Thou shalt not commit adultery:
    but I say unto you, That whosoever looketh on a woman to lust after her hath committed adultery with her already in his heart.

  10. Security ... by YahoKa · · Score: 1

    Isn't public key encryption basically security through really extreme obscurity?

    1. Re:Security ... by Russ+Nelson · · Score: 3, Interesting

      No. Security through obscurity means that your task is made easier on every decryption by knowing something which is intended to be a secret. Needing to factor a number every time isn't obscurity. It's just plain hard.
      -russ

      --
      Don't piss off The Angry Economist
    2. Re:Security ... by Anonymous Coward · · Score: 0

      Sure, by the same reasoning that all encryption except OTP is security through obscurity. Nobody's proven any given algorithm is impossible to break other than through brute force. Even if one algorithm was, there's nothing preventing someone from guessing the correct key by chance.

    3. Re:Security ... by Anonymous Coward · · Score: 0
      No. Security through obscurity means that your task is made easier on every decryption by knowing something which is intended to be a secret.

      Not to be a smartass, but by this definition all encryption is security through obscurity. After all, decryption is much easier if one has the secret key.

    4. Re:Security ... by scott1853 · · Score: 2

      Well, every security implementation is technically security through obscurity unless you're using a perfected implementation of biometric authorization. Even passwords and high bit number factorization is simply based on not knowing something (the password or the prime numbers) and doesn't really prevent the wrong person from accessing resources.

    5. Re:Security ... by paladin_tom · · Score: 1, Interesting

      You can't have an algorithm that cannot be broken by brute force. Here's the proof:

      let S = the set of all possible keys
      for each key k in S
      try k
      if (k works)
      stop

      What we have is algorithms that are *hard* to break by brute force. We make them hard by making S as big as possible. And each time you add another bit to your key, the size of S doubles. Hence cracking is an exponential operation.

      --
      #define sig "Every social system runs on the people's belief in it."
    6. Re:Security ... by Terri416 · · Score: 1

      All encryption requires secrets. Good algorithms require that only the keys are secret, and everything else (especially the algorithms themselves) can be published without compromising security.

      Security Through Obscurity is bad because every (say, MS Media Player) has the same secret. If that secret is discovered, then /everything/ using that secret is compromised.

      Asymmetric encryption (e.g. Diffie-Hellman) avoids this problem by having a different secret for each end user. If the secret is discovered then only that user is compromised.

      The point is that Security Through Obscurity depends upon widely distributed secrets (e.g. the exact behaviour of binary code), whereas competent encryption doesn't.

    7. Re:Security ... by Anonymous Coward · · Score: 0

      You forgot the semicolons.

    8. Re:Security ... by Anonymous Coward · · Score: 0

      How do you know that k works?

      Look up "one time pad."

    9. Re:Security ... by _Knots · · Score: 1

      Weeeeell... a boring old XOR OTP is "unbreakable" because (k works) is not possible to evaluate - *every possible* plaintext will be generated in your search through S. Now can you pick the right one? Of course not, you'd have to know which one it was ahead of time.

      An interesting area of crypto research is trying to extend the same idea to other cryptosystems - can you generate while you encrypt a message a second "private" key that will yield a perfectly innocuous (sp?) message? If ever questioned, reveal that key, not your real private key. Or use two different private keys simultaneously so that all messages use the same key for their innocuous halves.

      --Knots

      --
      Anarchy$ dd if=/dev/random of=~/.signature bs=120 count=1
    10. Re:Security ... by dillon_rinker · · Score: 3, Informative

      No. The phrase "security through obscurity" generally means that the security algorithm is kept a secret. The lock on your house is a good example - how the lock works is open, public information. The particular key that you use, however, is not. To unlock your door, someone must either learn what key you use or exploit weaknesses in the lock. A standard locksmith text, some standard locksmith tools, and a little time is all that's required to pick the standard lock. How the lock works is not obscured; what key you use is.

      Since everyone knows how the lock works, everyone can see what the weaknesses are and everyone can try to correct them (this has been done over the last couple of centuries). If you used a non-standard lock with a mode of operation that only you knew, that would be security through obscurity. No one can learn to pick it by reading standard locksmith texts. The weaknesses would have to be learned through trial and error by someone on your front porch. Any lockpicker would have to learn not only what key you used but how to use it in the lock.

      Public key encryption generally uses well-known algoorithms - this is what makes it not obscure. The keys are secret, just as with obscure systems. However, everyone can see whether or not the system is a strong one.

      Go read Cryptonomicon for a fictional introduction to the perils of obscured cryptosystems, as well as the benefits of open ones. Then read Applied Cryptography for the real (ie technical and mathematical and correct) deal. Or just take my word for it like a happy little slashdotizen. :)

      BTW, modern locks are the result of a couple hundred years of improvements and refinements; they are currently about as good as they need to be, given weaknesses of the door itself, the convenience of regularly using the mechanism, the cost of the lock and keys, etc. Cryptosystems are nowhere near that level yet. The internet is still a country town, in the sense that everyone leaves their house unlocked and their keys in the ignition of their car. Once everyone's been hacked a couple of times (and I do mean everyone), adoption of crypto will become widespread, and we'll begin to see sufficient standardization to make crypto comparable to real-life locks. Government officials don't whine about locks the way they do about crypto for good reason - they aren't much more than courtesy and inconvenience devices. Give me a good sledgehammer and I'll be in your door in five minutes. Give me a power saw and I'll make my own door. Betcha the standardized crypto will be similar.

    11. Re:Security ... by Anonymous Coward · · Score: 0

      *smack* you're stupid. (k works) will be true for every message the same length as the message you're trying to decrypt. Look up One Time Pad and think about it.

    12. Re:Security ... by Russ+Nelson · · Score: 2

      I'm curious: did you read what I wrote or are you replying to the original poster to whom I was writing?
      -russ

      --
      Don't piss off The Angry Economist
    13. Re:Security ... by Russ+Nelson · · Score: 2

      No. Security through obscurity is when you run your relaying smtp server on port 27 instead of port 25. Real security is when you only relay when the user has authenticated cryptographically using SMTPAUTH.
      -russ

      --
      Don't piss off The Angry Economist
    14. Re:Security ... by rgmoore · · Score: 2
      If you used a non-standard lock with a mode of operation that only you knew, that would be security through obscurity. No one can learn to pick it by reading standard locksmith texts. The weaknesses would have to be learned through trial and error by someone on your front porch. Any lockpicker would have to learn not only what key you used but how to use it in the lock.

      To carry the analogy a bit further, your lock would probably be very difficult to pick quickly, no matter how skilled the person trying to pick it is in picking other locks- at least until he figured out how it worked. Once the principle of operation of your lock is known, though, the person trying to pick it can develop a standard approach to picking that style of lock.

      The problem then is that there's a very good chance that your new lock design will be easier to pick for somebody who knows how it works than a standard lock would be. Chances are you've made a mistake and left in some vital flaw in your design that makes it easier to pick. After all, your lock would not have the decades of dedicated people trying to figure out how to pick it that are needed to find and correct the weaknesses in its design. And if you try to sell your lock to the public, anyone who's interested in learning how to pick it will be able to buy one, take it apart, and spend as much time as he wants trying to figure out how it works.

      --

      There's no point in questioning authority if you aren't going to listen to the answers.

    15. Re:Security ... by Waffle+Iron · · Score: 3, Funny
      Security through obscurity is when you run your relaying smtp server on port 27 instead of port 25.

      That's why I choose real security. My relaying smtp server runs on a prime number port, protected by factoring. In fact, I can go ahead and tell you that the port is one of the prime factors of 899 without reducing my security at all.

      (The example of 27 is a particularly lame choice, since it's 3x3x3. That's not even nearly prime.)

    16. Re:Security ... by Anonymous Coward · · Score: 0

      So, your server is on port 29 or 31 ? Brilliant.

  11. Maple? by Anonymous Coward · · Score: 0

    What a nutcase. Who in his right mind uses Maple?

    1. Re:Maple? by man_ls · · Score: 2

      I use Maple -- it's a comparatively inexpensive (I got an Academic version of it for free from a university, actually.) and it's easy to use, while still powerful.

      Nobody is comparing it to Mathematica or Matlab...but it's still good.

    2. Re:Maple? by jbolden · · Score: 1

      Why not? At least in the early 90's Maple was slightly better. I've looked at Mathematica and it doesn't seem to have advanced all that much.

    3. Re:Maple? by saforrest · · Score: 1
      Nobody is comparing it to Mathematica or Matlab...but it's still good.

      Actually a lot of people are comparing it to Mathematica; some even favourably.

      The real question is: what does the NSA use for symbolic computation? :)

    4. Re:Maple? by BoneyM · · Score: 1

      FWIW Matlab uses the Maple engine for its symbolic stuff.

    5. Re:Maple? by jpmorgan · · Score: 1

      Why shouldn't they comapare Maple to Mathematica? Maple may not be as pretty as Mathematica, but it's a more powerful symbolic computation engine.

      And I'm not sure how you got the academic version for free, since the academic version costs almost $200! You can imagine how much a non-academic license costs.

  12. Why? by ninkendo84 · · Score: 1

    I didn't really think there was any need for anything better than 128 bit encryption. It would take a lot of factoring that is practically impossible by human standards to figure out the key for a 32 bit encrypted code, and this site seems to tell me that 128 bit encryption is nearly impossible to break by any standards.

    On that same site, they are saying that most encryption cracking comes in the form of key snooping, trojan horses, and packet sniffing, so simply increaing the cipher strength probably won't do much.

    --

    $ make love
    make: don't know how to make love. Stop
    1. Re:Why? by God!+Awful · · Score: 5, Informative


      I didn't really think there was any need for anything better than 128 bit encryption. It would take a lot of factoring that is practically impossible by human standards to figure out the key for a 32 bit encrypted code, and this site [stack.nl] seems to tell me that 128 bit encryption is nearly impossible to break by any standards.

      128-bit private key encryption is considered virtually unbreakable. 128-bit public key encryption is not. AES is an example of private key encryption; RSA is an example of public key encryption.

      -a

    2. Re:Why? by wirelessbuzzers · · Score: 1

      128 bit encryption is for symmetric (i.e. private) key encryption. It is nearly unbreakable. The problem is that you have to arrange a key with the person to whom you're sending the message, which could be difficult, especially if you don't know him or her.

      That's where public key crypto comes in. Knowing that my PGP public key ID is 0x84B0FDB8, you could send me a message that only I could decode, unless the NSA has a few very interesting secrets. Since I have to publish information (namely how to encrypt the message), this type of code is inherently easier to break. RSA can be broken by factoring a large number, and a 128-bit number poses little challenge for even the Sieve of Eratosthenes on a fast computer, so longer ones are needed. The question is, how much longer?

      Which is why I use DH/DSS, which operates with the (slightly) harder problem of discrete logarithms.

      --
      I hereby place the above post in the public domain.
    3. Re:Why? by jmauro · · Score: 1

      I believe your confusing public/private with symetric/asymetric. Public/Private terminology is used with asymetric enryption techinques like RSA, but not witrh symetric techniques like AES or DES.

    4. Re:Why? by muon1183 · · Score: 1

      The average computer can crack a 128 bit RSA key in about a month. Of course, the average slashdoter's computer can break 128 bit key in about a week, and, in 1999, a beowulf cluster broke a 128 bit key in a matter of a few hours. Of course, with 1024 bit encryption, it is far easier just to stick a key stroke log onto somebody's computer, but, considering that in 1999 a beowulf cluster was able to brute force a 128 bit key in a matter of hours, it is probably possible to break a 1024 bit key in about a year these days (unless, of course, your the NSA, in which case, you can break it in a couple of days).

      --

      There's no sig like SIGSEG
    5. Re:Why? by Wyzard · · Score: 1

      You're thinking of keys for symmetric ciphers - the kind where the same key does both the encryption and decryption. For public-key algorithms, more key bits are needed to achieve the same level of security.

      According to Bruce Schneier in Applied Cryptography, Second Edition, a 56-bit symmetric key is roughly as secure as a 384-bit asymmetric key, and a 128-bit symmetric key is roughly as secure as a 2304-bit asymmetric key. (Table 7.9 on page 166; there's a copy of the same table on the page you linked to.)

      Even with a symmetric algorithm, though, breaking a 32-bit key is not "practically impossible by human standards". 56 bits, the key size used by DES, is considered to be insecure since it can be broken in a few days on a PC. I'm not sure where you got your information on that page you referred to, since in the last paragraph the author says "For today's secrets, a 1024-bit is probably safe and a 2048-bit key definitely is." And "today" in this case is January 26, 1997, when the page was last modified.

      I'd recommend at least 4096 bits for new keypairs. It may or may not be overkill, but modern computers are fast enough that the time it takes to cipher with a longer key is still insignificant in the course of normal usage.

    6. Re:Why? by God!+Awful · · Score: 2


      I believe your confusing public/private with symetric/asymetric. Public/Private terminology is used with asymetric enryption techinques like RSA, but not witrh symetric techniques like AES or DES.

      I most certainly am not. Do a little research and you will find that the terms "public key cryptography" and "private key cryptography" are commonly used to refer to asymmetric and symmetric encryption respectively. E.g. see result of google search.

      -a

    7. Re:Why? by braindead · · Score: 1

      You are right, although I would like to point out that the terms "public-key cryptography" and "secret-key cryptography" (note "secret" instead of "private") are preferred because of the lower risk of confusion.

    8. Re:Why? by Xilman · · Score: 1
      The average computer can crack a 128 bit RSA key in about a month.

      Actually, the average computer can crack a 128-bit RSA key in about a minute. Assuming, that is, it's using an algorithm developed in the last twenty years or so. 128 bits is only 43 digits, and factoring 43-digit integers these days really is very easy.

      in 1999, a beowulf cluster broke a 128 bit key in a matter of a few hours.

      References please. This is a new one on me. What kind of key? At this size a RSA key, or a discrete log over the integers, is essentially trivial and a 3DES or AES key is essentially impossible, AFAIK. State of the art for the ECDLP (elliptic curve discrete logarithm problem) is still a few bits short - again, AFAIK.

      Paul

      --
      Lasciate ogne speranza, voi ch'intrate
    9. Re:Why? by Xilman · · Score: 1
      128 bits is only 43 digits

      Sigh. I really ought to check before relying on memory, rather than afterwards. A 128-bit integer actually has 39 decimal digits.

      Paul

      --
      Lasciate ogne speranza, voi ch'intrate
    10. Re:Why? by ^BR · · Score: 1
      I'd recommend at least 4096 bits for new keypairs. It may or may not be overkill, but modern computers are fast enough that the time it takes to cipher with a longer key is still insignificant in the course of normal usage.
      This may be true for something like PGP because you only send that many email a day, but for a https server it will make a huge difference in the connection rate that you'll be able to sustain, RSA computation being by far where most of the CPU is spent. 4096 keys are not viable in a web context. By the way many toolkits support RSA keysize only up to 2048 bits.
    11. Re:Why? by Hater's+Leaving,+The · · Score: 1

      {{{
      RSA can be broken by factoring a large number, and a 128-bit number poses little challenge for even the Sieve of Eratosthenes on a fast computer, so longer ones are needed.
      }}}

      I hope you regret writing that.

      For 128 bits (39 digits), you almost certainly need a better than O(n^(1/3)) algorithm, or an amazing constant factor in something like a Fermat method with sieves (a la Knuth).
      Fortunately P-1 and Rho are arguably O(n^(1/4)), and ECM is better still (arguably sub-exponential). However, if you have prior knowledge that the number is unlikely to have small factors, then at 39 digits, you may as well just roll out a QS, which is sub-exponential, and excels when there are no small factors.

      Satoshi Tomabechi's PPSIQS would do the job in the bat of an eye.

      Mike Scott's QS, accompanying his Miracl library, would do the job too.

      THL.

      --
      Keeping /. cynic density high since the fscking Kwhores/trolls arrived.
  13. here's a quarter by Anonymous Coward · · Score: 0
    Call someone who gives a shit ...

    I don't give a rat's ass.

  14. Re:Suicide Note by ninkendo84 · · Score: 1

    I'm new here, but is this a new form of trolling?

    --

    $ make love
    make: don't know how to make love. Stop
  15. To rthe editors by peterdaly · · Score: 0, Offtopic

    In the future, when editing (you guys do that...right?) Please replace the NFS in this usage with "Number Field Sieve". (That's what this is talking about, right?)

    You are confusing all the unix file sharing people. This is like when talking about IP addresses with people who work more with "I"ntelectual "P"roperty.

    -Pete

    1. Re:To rthe editors by Anonymous Coward · · Score: 0

      They did, troll boy.

  16. Re:Suicide Note by wirelessbuzzers · · Score: 0, Flamebait

    Let's hope so.

    --
    I hereby place the above post in the public domain.
  17. Re:Suicide Note by Anonymous Coward · · Score: 0

    What he has said appears consistent with his posting history on kuro5hin so it does not seem to be a troll.

    I've had similar thoughts except mine do not involve running my car off a cliff (not many around here) but instead using some variety of firearm.

  18. Its the same problem by jbolden · · Score: 1

    Usually you just want p=2 in which case GF(2^m) is embedable in 2^n for large enough n.

    1. Re:Its the same problem by tomstdenis · · Score: 1

      yes you can do ECC over GF(2^m) but you can also do it over GF(p).

      [cheap plug]
      My (free, portable, fairly packed) libtomcrypt lib takes the NIST curves over GF(p) since they are simpler to work with...

      http://libtomcrypt.sunsite.dk

      [/cheap plug]

      Using the other field structure is more important in hardware or say low end microcontrollers.

      Tom

      --
      Someday, I'll have a real sig.
    2. Re:Its the same problem by Inthewire · · Score: 1

      IAgreeWithThisPost

      --


      Writers imply. Readers infer.
  19. Cost Effective? by telstar · · Score: 1, Funny
    We already learned from "Sneakers" what one of these things costs:
    • one cleaned up record
    • a whinnebago (burgandy interior)
    • a date with an armed woman named Mary
    • a trip to Europe (plus Tahiti)
    • peace on earth, good will towards man.
    Oh ... He means performance costs. Nevermind.
    1. Re:Cost Effective? by Anonymous Coward · · Score: 0

      Tahiti is *not* in Europe!

      S'funny, I just watched it again two days ago!

    2. Re:Cost Effective? by Anonymous Coward · · Score: 0

      Excuse me sir, when you have the box ... you can give us geography lessons ... until then, this man goes to Tahiti!

      -River Phoenix (RIP)

  20. great... by Anonymous Coward · · Score: 0

    now RIAA will make damn sure that new Brittney spears song NEVER gets out of your head.

  21. Re:Suicide Note by Anonymous Coward · · Score: 0

    and all this over his job? Man... at least kill yourself over something more important -- like a realtionship you sunk 4 years into.

  22. all this fs stuff, by Anonymous Coward · · Score: 0

    nfs, afs, bah everyone knows coda is the king. factor that acronym then you wouln't be confused of what nfs is when your reading an article that absolutely doesn't have anything to do with it.

  23. Re:fp? by Anonymous Coward · · Score: 0

    Her (pornstar) name is Swan. You can find pictures of her on www.exposedpornstars.com. Use the url format "www.exposedporntars.com/swan$/swan$1.htm", replacing the "$" with an interger between 1 and 11 to see each gallery.

  24. Time to update that crypto by hazyshadeofwinter · · Score: 3, Funny

    Yeah, I once thought it was secure, but it looks like now I might have to replace my rot13 encryption with rot26, or even rot52...

    --
    Click here if you just like to click on shit.
    1. Re:Time to update that crypto by richie2000 · · Score: 1
      I think I'll just write out all my data on paper, bury it in a damp landfill somewhere and let it rot on its own.

      Why isn't there a "-1 Lame joke" moderation? :-)

      --
      Money for nothing, pix for free
    2. Re:Time to update that crypto by hazyshadeofwinter · · Score: 1

      Moderation Totals: Funny=3, Overrated=1, Total=4.

      There is, sort of. But I was *really* going for -1, Obvious. Imagine a Beowulf Cluster of those!

      --
      Click here if you just like to click on shit.
  25. Re: "Until then" by Psiven · · Score: 0

    Yes indeed, what will happen then? Will the communication be so chaotic that it will be immeasurable, or perhaps it will be so deeply ingrained in the environment that thought police (you know, "them") will have no trouble spying.

  26. Re:Suicide Note by Anonymous Coward · · Score: 0

    advice:

    use a credit card to fly to amsterdam.

    go to a coffeeshop

    keep smoking hash until you change your mind.

    the people there will be helpful to talk with.

    if you're too straightlaced for that approach go to a hospital. it will be many, many thousands of dollars more expensive but they have new drugs including "risperdal" which you may find very helpful. it will eliminate your current negative mindset. it's not as fun as hash, though.

  27. Re:Suicide Note by Anonymous Coward · · Score: 0

    Oh please. How pathetic. I guaran-frickin'-tee, if this world ever drives me to suicide, I'm taking a whole bunch of motherfuckers with me.

  28. Re:Suicide Note by Anonymous Coward · · Score: 0

    amsterdam has got to be the ass nastiest place on the face of the earth. Soiled diapers in the gutter, stinky people to stoned to shower. Ass Nasty.

  29. Re:Suicide Note by Anonymous Coward · · Score: 0

    i'd like to know what city in this damn country has jobs right now.

    yeah maybe if we attack iraq then everything will be all better.

    yeah f-ing right.

  30. Re:Suicide Note by Anonymous Coward · · Score: 0

    were you there during tourist season?

    besides, here's an algorithm for fixing your problem

    while (you give a fuck)
    do Smoke-Hash

  31. Cost model by blair1q · · Score: 4, Funny

    Computation time multiplied by the cost of the computer?

    His department comptroller must love him. "No, you can't have a new plastic spoon, because it costs 11 cents and you will be using it for 0.8 years and that's...2.8 million dollar-seconds...we'll buy you a new $40 silver spoon every day and let you use it to stir your coffee for three seconds per...that's only 35K dollar-seconds..." It's pathological.

    Okay, if you fully depreciate the computer to the moment you start the computation, or better yet, market-price it, then watch the price as the computation continues along (could drop 10-20% in a few weeks for a given top-end PC type machine), then you're calculating the average replacement cost of the machine over the life of the computation.

    It still seems a little verschimmelt. The quasi-rent on such a machine is really the depreciation over the term of the computation.

    Need to think more on what cost means to someone who's trying to steal all your base. They probably stole the computer, anyway.

    --Blair

  32. +1 Informative! by Anonymous Coward · · Score: 0
    MOD THE PARENT UP!!

    Reading that post made me wanna get an enema, too.

  33. Key factor by Taco+Cowboy · · Score: 2



    I wonder if there's a encryption program that use multi-K bit key, such as 8192-bits or 64Kb ?

    Many years ago I downloaded a PGP variant that accepts 8192 bit key. So far, I don't know if there's any GPG or PGP or whatever encryption program out there that capable of having more than 8192-bits key.

    Any info ?

    --
    Muchas Gracias, Señor Edward Snowden !
    1. Re:Key factor by a_n_d_e_r_s · · Score: 2

      Addding more bits just for the fun of it is not needed.

      4096 should suffice for most applications todag.

      If you want more security I suggest you start looking into one-time-pads.

      --
      Just saying it like it are.
  34. Re:Suicide Note by Anonymous Coward · · Score: 0

    Read the original an quite a lot of comments at

    http://www.kuro5hin.org/story/2002/7/28/163659/7 07

  35. Check out my factorization applets... by bearnol · · Score: 1

    http://www.bearnol.pwp.blueyonder.co.uk/Math/Facto r/Factorfa.html
    and
    http://www.bearnol.pwp.bluey onder.co.uk/Math/Facto r/Factorwa.html

  36. Funny!.. but you gave too much information. by leuk_he · · Score: 1

    But there is not much cost at doing a NFS on 899.

    Things would change if you provided the ip number your smtp server was on. But since it is not on port 25 i only have to scan every ip (2^32 -1) for an smtp server on port 31 or 29.

    If you were on port 25 i would have no way to tell it was your smtp. But by setting it up on an obscure port you just gave information.

    Y0u have been 0Wned! All you 5MTPz Be10ng to U5. (sorry, i am a beginner at 1337)

  37. I don't think the kids will like it by sjonke · · Score: 1

    It just sounds way too complicated. What does cost factorization have to do with cute little bears anyway?

    --
    --- What?
  38. Re:Headhunters visiting the site? Off topic by Anonymous Coward · · Score: 0

    I'm so happy about all of these accounting scandals. Not because I like seeing people go out of work, or that I enjoy watching the US economy flush itself down the shitter, but because I have personal reason to hate so many of the banks and firms that are getting slammed. Arthur Andersen consulted for our family business a while back. They charged too much, padded the hell out of the contract, and didn't tell us one thing we didn't know. I have an account with Citibank, 'nuff said. I go to college with the heir to the Chase Manhattan fortune. He's a dick and doesn't deserve a cent.

  39. MODS? by wirelessbuzzers · · Score: 1

    Um, just wondering... how was the above comment flamebait? I could see it as stupid, offtopic, or whatever... oh well, why am I arguing? It's not like karma matters...

    --
    I hereby place the above post in the public domain.
  40. Re:Great. by Anonymous Coward · · Score: 0

    Actually, that is the basis for a fiendishly clever encrypting scheme!

  41. The most interesting part by st.n. · · Score: 1
    I think the most interesting part of Bernstein's answer is here. The last paragraph states:
    I am astonished that anyone would publish this obvious use of mesh routing as if it were an interesting new result; I am annoyed that my grant proposal has been characterized as presenting slower algorithms than it actually does; and I am particularly disappointed in Lenstra and Shamir for publishing their paper after I informed them in plain language that their claim of an ``improvement'' was false.
    And on the same page he cites an email he sent to Arjen Lenstra in April which explains what this all is about in a much more understandable way.