3 ms·
> A random number in the range 000-999 is more secure than 001-998, rejecting values weakens it. This sort of argument gets misused a lot. If your entire list
by Dylan16807 8y ago
> A random number in the range 000-999 is more secure than 001-998, rejecting values weakens it.
This sort of argument gets misused a lot. If your entire list of exclusions is less than 5% of the keyspace, you have not meaningfully weakened security. The ability to detect when a number has been left at its default value is far more useful.
It's probably not worth excluding real customers to get that "is the number default?" check. But as a critique on the design of CVV, the system would be better if it never assigned 000.
- Confiks 8y ago> meaningfully The comment you replied to didn't include that condition, and I'd be reluctant to state some arbitrary percentage – as you conjure up 5% – to be 'meaningful'. A larger keyspace is strictly more secure against an attacker trying to guess the key.
- Dylan16807 8y agoIt's absolutely ridiculous to worry about the security difference between 9.966 bits of entropy vs. 9.964 bits of entropy. You are also assuming the attacker is optimal. If the attacker has a bias that will reliably exist, and you counter-bias your generator, you can get better than 999/1000 odds against the average attacker.
- jsnell 8y agoWhy are you saying 000 is a default value?