Click here to Skip to main content
15,944,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have seen a lot of papers related to AES and triple-DES image encryption where they display the encrypted image results. But I am unable to find how they do it as if the image is encrypted, then it is converted into some unreadable format. Then how do they display them in research papers and write analysis results?
I am adding an image link for reference:
image encryption using AES - Google Search[^]

What I have tried:

I have tried to implement some code but I am not able to display the encrypted image result.
Posted
Updated 6-Aug-22 3:10am

1 solution

The result of encrypting anything is a stream of bytes, many of which are not displayable on a screen or printer. For example if I encrypt the string:
"The rain in Spain falls mainly in the plain"

the result is
↔0!å°þ▒ë■&·lBZ■`(Ä(ı4OïödAÇ┤#è╠Ö¦~j┐↨7&$´♦ð↕l¤ðþPH↓}}§♫N|³½↔¡♫═Ï?╩▀◄|enx/┴U→|Ì=WîJ‼i<☻└☼J▄wn↔5

which on some systems may not be displayable. To ensure it is displayable you need to convert each byte into its hexadecimal equivalent and display that; something like:
1D302186F8E7B189FE26FA6C425AFE60288E28D5344F8B94644180B4238ACC99DD7E6ABF17372624EF4D0126CCFD0E75048197D7DF5E4E7CFCAB1DADECDD83FCADF117C656E782FC1551A7CDE3D578C4A13693C2C04B8F4ADC776E1D35
 
Share this answer
 
Comments
Rehman Ali Aug2022 6-Aug-22 9:22am    
I know but in research paper they properly show that this is their encrypted image. How do they do that. I have seen many Papers and all of them show similar results. How they show their encrypted images then? That's what i want to know. Do they use simulations or what.
Richard MacCutchan 6-Aug-22 9:26am    
I don't know, you need to ask the people who produce the papers. It is unlikely that an encrypted image can be shown as a simple grayscale, since many of the values will not be consistent with the image structure. But it is also possible that some of the encryption is not done using straightforward AES/DES.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900