AES Image Encryption Decryption

I am encrypting image using AES algorithm. But when i am reading the image after Encryption its showing me multiple images. Can anybody help me out to solve this problem.
Thanks alot.
JH

3 Comments

What do you mean you see multiple images? Would you please post a picture with your question?
You can view anything as an image, just load them to MATLAB and show them using imshow. you can even do it with audio files,lol.
So you always gonna see something even if encrypted. Is that your problem?!
It is not clear what you mean by seeing multiple images. Could you clarify? What are the steps you took?
Also do be careful when encrypting images with AES. AES can be used in several modes of operation. And using the plain old AES mode, called Electronic Code Book (ECB) mode, to encrypt an image, is a bad idea. Use one of the more advanced modes of operation. AES is a block cipher. And simply using ECB mode to encrypt an image will show off the information in the cipher text when viewed with an image viewer.
Is that what you meant? You are seeing the image even after encryption?
yes exactly please send me the code if you have?

Sign in to comment.

Answers (0)

Categories

Asked:

Jh
on 30 Jul 2014

Commented:

on 15 Feb 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!