in reply to Re: Check randomly generated numbers have not been used before
in thread Check randomly generated numbers have not been used before
Whilst the coprimality of parameters ensure uniqueness whilst saving you from have to track previous picks; the method has a weakness: if an attacker can cause you to give him two consecutive picks -- say, by inspecting the latest additions to the parts inventory -- he can determine S, and from that start guessing your new part numbers.
He doesn't even have to find to consecutive picks; only two that where allocated close to each other. If the difference between them is prime, he's probably found S; if not, he only need find the prime factors of that difference to find it.
With a little more inspection and analysis, he will be able to determine your offset; and at that point, the benefits of allocating "seemingly random" part numbers is defeated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check randomly generated numbers have not been used before
by GotToBTru (Prior) on Sep 16, 2016 at 20:13 UTC | |
by BrowserUk (Patriarch) on Sep 16, 2016 at 20:48 UTC |