Simple Matlab Code For Image Encryption and Decryption.

101 views (last 30 days)
Can someone please post a simple matlab code for image encryption/decryption. Its urgent. Thank you. :)
  7 Comments
Walter Roberson
Walter Roberson on 28 Nov 2020
Sorry, Dhayanithi Govindasamy, the steps you posted could easily have been extended past 56 bits key space, and so we are not permitted to host that discussion here due to US law.
Walter Roberson
Walter Roberson on 28 Nov 2020
Images are not always 0 to 255. For example CT scan images are routinely int16 values, -32768 to +32767

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 13 Apr 2014
Edited: Image Analyst on 13 Apr 2014
I'm guessing you did not do a search of the File Exchange or you would not be asking this. Please click on this link: http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=encryption
  7 Comments
Abdiaziz Hussein
Abdiaziz Hussein on 10 Nov 2019
I need a algorithm written in Matlab, for a Elgamal encryption which can encrypt and decrypt data stream of 32 words, with a key which has a modulus of 1024 vits

Sign in to comment.

More Answers (2)

Namitha H.S Gowda
Namitha H.S Gowda on 25 Mar 2018
Can someone please post a simple matlab code for image encryption/decryption
  5 Comments
Image Analyst
Image Analyst on 13 Nov 2018
Try a search for ITAR encryption rules You'll find lots of information
Even US universities need to get approval to do research into advancing the state of the art in encryption. Note that encryption is different than encoding, like encoding a video into a binary file.
Walter Roberson
Walter Roberson on 13 Nov 2018
It is a frustrating restriction, and often makes little sense, but it is the law of the USA.
Another note: authentication is considered to be different than encryption. So something like a well-hidden watermark to verify copyright is legal. The technologies for watermarking are essentially the same as steganography (hiding messages), so the legal boundaries are far from clear.

Sign in to comment.


arun anoop m
arun anoop m on 5 Aug 2019
Edited: Walter Roberson on 16 Aug 2019
  2 Comments
sana kadim
sana kadim on 16 Aug 2019
can you tell me the algorithm who can i do?
siraqsana@gmail.com
Walter Roberson
Walter Roberson on 16 Aug 2019
Any algorithm that can encrypt binary streams can be used to encrypt images.
Discussion of all the image encryption algorithms and their benefits and tradeoffs is beyond the scope of this resource.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!