mercredi 15 septembre 2021

What should be used as a PRNG seed?

Most papers either do not even mention it or just say get an "initial vector" from somewhere somehow.

The approach posted in a lot of places is to use system time. However isn't this a serious vulnerability (assuming the algorithms are known)? If the time is known withing a few seconds I estimate (by doing a few trivial tests using QueryPerformanceCounter) there would be less than 24 bits of actual information (quite pathetic). Plus since time has a somewhat predictable nature, one could generate necessary information for a hypothetical attack in advance.

Is there a way to initialize a PRNG and not feel sad?




Aucun commentaire:

Enregistrer un commentaire