publicRavi
publicRavi

Reputation: 2763

Find encryption algorithm from a file

If I have a file claimed to be "encrypted using AES algorighm", can I verify that their claim is true?

Upvotes: 3

Views: 582

Answers (2)

Teoman Soygul
Teoman Soygul

Reputation: 25742

Good encryption schemes are actually designed to hide away all the details of encryption from the encrypted data so if they used a proper application to do the encryption, you should not be able to verify the algorithm used.

Upvotes: 1

SLaks
SLaks

Reputation: 887433

Only if you have the key. (and IV)

Encryption produces arbitrary byte sequences; most algorithms do not have any characteristics about their output.

In fact, one can design a ciphertext which corresponds to two different plaintexts using two different keys or algorithms.

However, depending on what the file is, it may have a (plaintext) header specifying the encryption algorithm (and that header may be lying).

Upvotes: 4

Related Questions