Hi, I’m having trouble with a little test. I’ve been given a jpeg image which is cyphered with a XOR encryption. I have the key, which is the first 154193 (number of pixels) digits of pi. I’ve looked up the headers of the image and it appears that it was created with Wolfram Mathematica. How can I decypher the image now? I can link the image if you want (377x409 pixels)
javierbg1995
(Pepe Pepito)
1
brucem
(Bruce Miller)
2
I suspect you want ImageData to turn the imported picture into a matrix, Partition to break the key into a matrix the same dimensions as the data, and BitXor to decrypt each pixel.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Image Compression | 8 | 23804 | July 14, 2022 | |
| Encode/Decode bug? | 3 | 7896 | May 23, 2015 | |
| How can I display image binary data to image in variables dct_img1 and | 3 | 7107 | October 8, 2014 | |
| RSA encryption and decryption. Code interpretation | 2 | 9517 | January 20, 2020 | |
| Image as number - a toy subspace | 0 | 1664 | March 15, 2025 |