How would I reverse engineer a cryptographic algorithm?

后端 未结 11 1159
面向向阳花
面向向阳花 2021-01-30 23:52

I wrote an application that encrypts text in this way:

  1. Get the input text

  2. Reverse the text

  3. Convert to hexadecimal

  4. <
11条回答
  •  礼貌的吻别
    2021-01-31 00:31

    If you have access to a black box which does the encryption, you can get a lot of information by feeding it particular input values.

    As a simple example, if the black box does "one time pad" style encryption, if you feed it all zeroes you get the one time pad. (In fact, feeding it any input value will get you the one time pad with an additional xor.)

    Note that good cryptosystems are resistant to such attacks, even if the cryptosystem is already known (but the key is not).

提交回复
热议问题