mardi 23 juin 2015

Cryptographically secure PRNG (PseudoRandom Number Generator)

What is the best and fastest algorithm to generate cryptographically secure PRNG? My requirements is as follows.

  • In each run, I need to generate few millions of numbers with length of 10.
  • It should not allow one to predict future iterations by observing some number of iterations.
  • Numbers should be unique. No duplicates allowed.
  • Speed is also important since it will generate millions of numbers in each iteration.

I checked Mersenne Twister algorithm but it seems it is not cryptographically secure. They said, it could be predicted by checking 624 iterations.

P.S. It would be better if there is a Java Implementation.




Aucun commentaire:

Enregistrer un commentaire