G
G
George1232018-10-18 00:21:04
Programming
George123, 2018-10-18 00:21:04

How to compare random number generators for crypto strength?

The essence of the question is this: I need to create a random number generator and a pseudo-random number generator, and I need to compare how much the first one is stronger / stronger than the previous one. Initially, I planned to feed the resulting numbers to already broken encryption algorithms, start breaking them and measure the time, but after looking a little at this topic, I realized that it would take too much time. (Maybe I'm wrong) Are there any options related to cryptography? And if not, how can you compare the resistance of these generators? Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2018-10-18
@Georgy123

dieharder , as suggested in the comments. This is a standard set of tests for checking the quality of RNG.

X
xmoonlight, 2018-10-18
@xmoonlight

In the generated sequences, you need to try to find constant cyclic sequences of elements.
Where this cycle can be found faster and the shorter it is (number of elements in one period) - that generator will be worse.
If it is not possible to find cycles for the same number of elements in both generators, then their cryptographic strength is the same for a given number of elements (including the initial conditions).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question