A JPEG that becomes a PNG after AES encryption and a PDF after 3DES decryption
code.google.com
code.google.com
https://archive.org/details/Pocorgtfo00
https://archive.org/details/Pocorgtfo01
https://archive.org/details/Pocorgtfo02
https://archive.org/details/pocorgtfo03
Imgur mirror: http://i.imgur.com/jUEAygp.jpg
I presume there is some algorithm based on the nature of ciphers themselves?
There are a couple of complications to this. The major one is that both formats require correct data near the begging of the file. The size of this region is small enough that it is feasible to brute force passwords until you find one that works.
That said, some encryption modes employing AES, like AES in CTR mode, are based on generating a pseudo-random keystream and XORing it with cleartext to get the ciphertext. The inverse of that operation is itself, but that has nothing to do with the term "symmetric encryption". This particular case uses AES in CBC mode, which is not symmetric in that sense.
AES is not a symmetric algorithm, AES in CTR mode is.
However, I'd point out that DES is a block cipher (thought it can be turned in to streaming cipher much like AES), and its decryption is encryption is with the keys in reverse order. This is how triple-DES can work as it does.
https://code.google.com/p/corkami/source/browse/trunk/src/an...
Ange Albertini does some amazing research and I was orginally introduced to his works after reading POC||GTFO from a Talk Travis Goodspeed gave. Recently Corkami did a giveaway on twitter for a signed mini-poster (Corkami's Posters are amazing as well highly recommended!) Fortunately I have a signed mini-poster en route to my mailbox cannot wait to have that thing framed.
* (JPG) https://corkami.googlecode.com/svn-history/r1906/trunk/src/a...