Re: Java encryption implementation

From: megagurka (megagurka_at_yahoo.com)
Date: 11/29/05


Date: 29 Nov 2005 04:02:25 -0800

TC wrote:
> There are several aspects of "random numbers" that are important in
> cryptography. One of these is randomness. (If the generator produces
> highly non-random results, this could help an attacker to crack it.)
> But another one is /unpredictability/ - a completely different thing.

Incorrect. Randomness and unpredictability are equivalent.

> Say you generate a huge number of sequential integers. That sequence of
> integers is:
> - randomly distributed (no integer appares more commonly than any other
> one);

Your sequence is not "randomly distributed".

> So my generator, which I offered as an instructive joke, was only meant
> to illustrate that randomness is /not enough/, and having a long period
> is also /not enough/. The numbers must also be /unpreictable/ - a
> completely different thing.

Of course randomness is enough for a RNG.

/JN



Relevant Pages

  • Re: Dijkstras guarded commands
    ... On a system that used randomness at runtime, this incorrect program ... That's why I believe that determinism is more likely to cover up such ... M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html ...
    (comp.lang.forth)
  • Re: A misapplication of probability theory in exam grading
    ... I don't think it was an attempt to remove randomness, ... arrange so that random guessing doesn't score better than not ... normal system and then do a final subtraction of (number of ... people more than giving negative scores for incorrect answers. ...
    (sci.math)
  • Re: urandom sufficient for e.g. SSL?
    ... whole field an incredible disservice in their weasle words. ... rightly point out that /dev/urandom uses a PRNG, seeded by real randomness, ... A PRNG is quite sufficient provided that the ... IF an attacker has root on the machine in question, ...
    (sci.crypt)
  • Re: strengthening /dev/urandom
    ... It's not at all based on the input data. ... randomness of the data. ... Seems like the creators knew estimating randomness from input data was a ... > pose a fundamental barrier to a real attacker (as opposed to a temporary ...
    (sci.crypt)
  • Re: Junk mail in sci.crypt
    ... can be - it is the definitive state of randomness by ... A cryptographically secure PRNG makes it difficult for the attacker to ... predetermined arrays. ... to know how to make the same selection as Alice. ...
    (sci.crypt)