How to identify encryption algorithm used in ciphertext?

后端 未结 5 820
忘掉有多难
忘掉有多难 2021-02-01 09:36

Is there any ways to try to guess encryption algorithm used to encrypt the ciphertext?

5条回答
  •  情书的邮戳
    2021-02-01 10:21

    Yes. There are some differences:

    • Is it a block cipher or not can be guessed from the length.
    • Block length
    • Entropy of the output (are all characters equally present? / can patterns be found?)
    • Recurrences (CBC or not...)

    The entropy of the string is probably the best hint. A simple method to determine it is probably trying to compress it. Some methods can be found here: http://www.random.org/statistics/ They use them to make sure their numbers are as random as possible.

    I've got no idea if it's really possible to determine the encryption using these methods.

提交回复
热议问题