Re: Java encryption implementation

From: TC (aatcbbtccctc_at_yahoo.com)
Date: 11/29/05

  • Next message: Joseph Ashwood: "Re: Looking for an encryption program"
    Date: 29 Nov 2005 00:21:20 -0800
    
    

    Hi Lars

    I'm not an expert in crypography, but I do know what the others are
    getting at here.

    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.

    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);
    - has an arbitrarily long period (as long as you want it to be), BUT
    - is totally predictable! Once you know what number the generator just
    emitted, you instantly know every successive number that it will emit!
    This would be hopeless to base a cipher on.

    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.

    Cheers,
    TC


  • Next message: Joseph Ashwood: "Re: Looking for an encryption program"

    Relevant Pages

    • Re: Good enough for crypto?
      ... to a few other hardware randomness generators that are ... > assess the quality of any sequence of bits. ... This type of analysis can only succeed if the generator ... > The autocorrelation function of a non-deterministic sequence will ...
      (sci.crypt)
    • Re: Dealing machines (What is "random"?)
      ... Reading Bridge Club has successfully used ... > a Duplimate dealing machine for all competitions. ... > discussed pseudo-random sequences and randomness tests. ... > Good ad hoc tests of a generator are whether it produces ...
      (rec.games.bridge)
    • Re: help on random number function
      ... >> demonstrate how to do this so that I have improved randomness? ... > Read the referenced paper and then adapt this algorithm: ... If you are going to use a linear congruential generator, ... multiplier is not too big you must still do at least one modulo which ...
      (comp.lang.cpp)
    • Re: First Law of Intelligence and the Big Bang
      ... And it doesn't require intelligence to design a decent pseudo-random ... But you can get loads of real randomness out of a cup of hot ... pseudo-random number generator?" ...
      (talk.origins)
    • Re: non-pseudo random number generators
      ... >>a pseudo random generator. ... control over the -design- of the generator. ... and you get to -prove- the randomness of #'s ...
      (sci.logic)