Simple Matlab Code For Image Encryption and Decryption.
Afficher commentaires plus anciens
Can someone please post a simple matlab code for image encryption/decryption. Its urgent. Thank you. :)
7 commentaires
fati gh
le 19 Mai 2014
i need to .please send for me
Image Analyst
le 19 Mai 2014
She downloaded something from the File Exchange. You can do that yourself, you don't need her to send it to you.
shikha pandey
le 25 Avr 2020
please provide code for image encrption
Dhayanithi Govindasamy
le 28 Nov 2020
Modifié(e) : Walter Roberson
le 28 Nov 2020
As far as the concern is about the images, so we are taking the values from 0 to 255.
First of all have to read an image which you want to encrypt and decrypt.
For example:
image = imread("Image.jpg");
image = double(lena);
[steps removed due to US law]
This will give you an encrpted image.
Walter Roberson
le 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
le 28 Nov 2020
Images are not always 0 to 255. For example CT scan images are routinely int16 values, -32768 to +32767
Réponse acceptée
Plus de réponses (2)
Namitha H.S Gowda
le 25 Mar 2018
0 votes
Can someone please post a simple matlab code for image encryption/decryption
5 commentaires
John D'Errico
le 25 Mar 2018
NO. We are not allowed to do that.
Walter Roberson
le 26 Mar 2018
There is only one image encryption algorithm that we can post and still satisfy the law of USA:
function encrypted_image = encrypt_image(input_image)
encrypted_image = input_image;
function decrypted_image = decrypt_image(encrypted_image)
decrypted_image = encrypted_image;
Everything else is pretty much forbidden without special permission of a USA government department.
Walter Roberson
le 12 Nov 2018
Under international treaty , encryption is considered a munition, a weapon . Encryption code and discussion of encryption algorithms are controlled by the government of the United States . In order to meet free speech laws , the compromise is that every single person who posts encryption code must notify the Department of Commerce immediately after posting it, and that discussion of encryption is permitted only with the preapproval of the Department .
Formally speaking , preapproval is not required as long as the algorithm is one that cannot be modified by the user to have aa key space of more than 56 bits, but the only algorithm that meets that requirement is null encryption which leaves the message completely unchanged . For example ROT13 is a simple example of a Caeser Cypher which in turn is a simple example of a Vigenere Cypher which can be trivially extended past 56 bits.
Image Analyst
le 13 Nov 2018
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
le 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.
arun anoop m
le 5 Août 2019
Modifié(e) : Walter Roberson
le 16 Août 2019
0 votes
2 commentaires
sana kadim
le 16 Août 2019
can you tell me the algorithm who can i do?
siraqsana@gmail.com
Walter Roberson
le 16 Août 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.
Catégories
En savoir plus sur Encryption / Cryptography dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!