7 ms·
This png encrypts to the same image
- diafygi 12y agoCommand: openssl aes-128-cbc -K "55555555555555555555555555555555" -iv "83deccd3f93b37c70d37297f319cf367" -in WRxFKdq.png -out OMG_SAME_IMAGE.png Youtube Link: http://youtu.be/wbHkVZfCNuE http://youtu.be/wbHkVZfCNuE Previous discussion: https://news.ycombinator.com/item?id=7771568 https://news.ycombinator.com/item?id=7771568
- _nullandnull_ 12y agoAnge Albertini does some amazing work. If you haven't checked out his corkami repo I would highly recommend it. https://code.google.com/p/corkami/ https://code.google.com/p/corkami/
- dfc 12y agoIf you want the highlight reel: http://ange4771.imgur.com/ http://ange4771.imgur.com/
- dominicgs 12y agoHe's very enthusiastic about sharing his tricks too. I spent the day hanging out with him at Troopers in March and we spent a lot of time discussing the structure of PDFs. He's the one behind the file tricks in the journal of POC||GTFO - http://www.exploit-db.com/wp-content/themes/exploit/docs/pocorgtfo03.pdf http://www.exploit-db.com/wp-content/themes/exploit/docs/poc... In fact, he set a fun challenge - can you produce a PDF file that is different every time it's opened? e.g. a bingo card generator. The back of his business cards have cut down introductions versions of his posters, so everyone takes something away from meeting him. It's fun watching people decide which one they want.
- userbinator 12y agoCould this be considered a rather perverse form of a quine?
- recursive 12y agoIf it was really a quine, the process could be repeated. This one works only once.
- colechristensen 12y agoIt's not even all that perverse, it just so happens that this quine has a human reading and executing a few more steps in it's code than usual.
- im3w1l 12y agoSee https://news.ycombinator.com/item?id=7775146 https://news.ycombinator.com/item?id=7775146 for the tldr of they did it. To make a real quine, you'd have to know a fixpoint (block) of AES. By appropriate choice (easy to compute) of IV and plaintext this could then be extended into an arbitrary length "quine". From my quick googling there doesn't seem to be any known fixpoints.
- AdmiralAsshat 12y agoNovelty aside, if you encrypt to the same image, what was the point of encrypting? Can you hide something in the metadata that wouldn't have been visible until decryption?
- yincrash 12y agoThe visual image is the same, but the actual file is different. It basically stores a reverse encrypted (decrypted) version of the image as appended junk data.
- diafygi 12y agoThe technique allows encryption from one image to another (doesn't have to be the same). I just made both images the same for fun.
- deleted 12y ago[deleted]
- gfosco 12y agoThis would be a great form of Steganography. [1] Obviously, not having it return the same image, but something different. Encrypting a given file into a valid image file (like a meme.) It would pass by many things without raising suspicion, and require private knowledge (key, iv) to recover the alternate payload. It might even be plausibly deniable. [1] http://en.wikipedia.org/wiki/Steganography http://en.wikipedia.org/wiki/Steganography
- deleted 12y ago
- theoh 12y agoReminds me of http://en.wikipedia.org/wiki/Tupper's_self-referential_formula http://en.wikipedia.org/wiki/Tupper's_self-referential_formu...
- mey 12y agoFor others, you may find this http://projectnaptha.com/ http://projectnaptha.com/ useful to extract text from the image inside the browser.
- ultrafez 12y agoThis image was the first time I've found it handy to have it installed. It's not as useful in day-to-day browsing as you might think.
- MasterScrat 12y agoIndeed, and it takes quite some memory, and it's for me the first extension ever which actually crashed at some points (I'm using Chrome with a dozen other extensions installed).
- malkia 12y agoAnd for the first time, I got confused and thought it was text, not png (I've had Naptha installed few weeks ago).
- yzzxy 12y agoSimilar: the creation of an image that is it's own histogram. http://www.ironicsans.com/2007/09/idea_the_histogram_as_the_imag.html http://www.ironicsans.com/2007/09/idea_the_histogram_as_the_...
- Houshalter 12y agoHow on Earth does this work?
- mkesper 12y agoYesterday's article was more helpful: https://speakerdeck.com/ange/when-aes-equals-episode-v https://speakerdeck.com/ange/when-aes-equals-episode-v