Skip to main content

One of my questions still remains unresolved. I still don't know why XOR, bit shifting and the like are used for hashes and ciphers in the first place - if there is any mathematical reasoning behind this, why it's exactly these operations and nothing else?

One of my questions still remains unresolved. I still don't knowthe reasons why exactly XOR, bit shifting and the like are is used for hashesis that because XOR has an important property: reversibility. If you XOR a number with a key and ciphers inthen XOR the first place - if there is any mathematical reasoning behind thisresult with same key again, why it's exactly these operations and nothing else?you will get your original number.

  • one of the reasons why exactly XOR is used is that because XOR has important property - reversability. if you XOR number with a key and then XOR the result with same key again - you will get your original number.

One of my questions still remains unresolved. I still don't know why XOR, bit shifting and the like are used for hashes and ciphers in the first place - if there is any mathematical reasoning behind this, why it's exactly these operations and nothing else?

  • one of the reasons why exactly XOR is used is that because XOR has important property - reversability. if you XOR number with a key and then XOR the result with same key again - you will get your original number.

One of my questions still remains unresolved. I still don't know why XOR, bit shifting and the like are used for hashes and ciphers in the first place - if there is any mathematical reasoning behind this, why it's exactly these operations and nothing else?

One of the reasons why exactly XOR is used is that because XOR has an important property: reversibility. If you XOR a number with a key and then XOR the result with same key again, you will get your original number.

Source Link

One of my questions still remains unresolved. I still don't know why XOR, bit shifting and the like are used for hashes and ciphers in the first place - if there is any mathematical reasoning behind this, why it's exactly these operations and nothing else?

  • one of the reasons why exactly XOR is used is that because XOR has important property - reversability. if you XOR number with a key and then XOR the result with same key again - you will get your original number.