0
$\begingroup$

How to find the type of symmetric cipher that was encrypted. I have ciphertext, plaintext, key.

there is a command in openssl?

$\endgroup$
1
$\begingroup$

No, OpenSSL is a cryptographic API and TLS implementation with command line interface. It doesn't do crypt-analysis or algorithm detection.

You can try algorithms, probably starting with the most used ones. The size of the plaintext, ciphertext and key may also give hints - keysize and blocksize could point to specific ciphers for instance.

I'm not sure if there are open source or commercial analysis tools out there. You could ask the NSA, I would be hugely surprised if they would not have such a tool.

There is a list mentioned on ReverseEngineering but to me it doesn't give me much hope of finding an actual result.

$\endgroup$
  • 2
    $\begingroup$ This is a good answer in practice. But it should also be mentioned that this problem is impossible to solve in general. I.e., it is only solvable under the assumption that one of a few well known ciphers has been used. $\endgroup$ – Maeher Jan 28 '18 at 1:56

Not the answer you're looking for? Browse other questions tagged or ask your own question.