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.
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

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:
Share this answer
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