I have an encryption problem that I hope you might be able to help me with.
I have a bunch of encrypted files. Some of them were encrypted with
mdecrypt.rijndael-256 in PHP and some were encrypted with
mdecrypt.tripledes. A database used to exist that mapped the filename of each encrypted file to the appropriate encryption algorithm used for that file. That database has long been wiped from the server and now I only have the encrypted files that are either AES or 3DES. So my question is, is it possible to determine which algorithm was use to encrypt each file by examining a header or something? An added bonus would be if you could provide a example of how to determine the algorithm using a php script (although that's secondary and I can probably figure that out if I know what to look for).