奇偶校验是否只能在一定范围内校验数据的正确性?

Whether the `odd-even check` only can check the data correctness within limits?

The length of DES arithmetic Secret Key is 64 bit, the valid secret key length is 56, the other 8 bit use as odd-even check.

我有一个疑问,odd-even check是否只能在一定范围内检查数据的正确性?

如引用,我用下图来解释我的想法:

第一行,odd check值为0,如果我切换row 2row 3odd check值仍然是0,所以odd-even check无法检查这个问题。

所以odd-even check只能检查10的计数,并不能判断数据是否正确,对吧?

没错。 odd-even 检查捕获 one 位的变化,但是交换 10 涉及改变 two 位。有些方法可以捕获两位的变化,但它们需要不止一个校验位。