Is there an XTEA encryption key that does not encrypt?

188 Views Asked by At

The title just about says it.

The idea here is that I could disable encryption by choosing an appropriate key instead of disabling the encryption in the code.

2

There are 2 best solutions below

3
Artjom B. On BEST ANSWER

No, XTEA does not have weak keys where the encryption or decryption functions separately behave like the identity functions. (Or at least such a class of keys is not known.)

1
hanshenrik On

No, no matter what key you use (even the key 0x00000000 + 0x00000000 + 0x00000000 + 0x00000000 ), xtea will encrypt the data.

BUT, if you don't want the encryption, just set rounds to 0, and your data won't be encrypted, which i guess is what you want :) only padding will be applied in that case. (when rounds is 0, it does not matter what your encryption key is, by the way. no encryption key will make any difference.)