Simple Matlab Code For Image Encryption and Decryption.
显示 更早的评论
Can someone please post a simple matlab code for image encryption/decryption. Its urgent. Thank you. :)
7 个评论
fati gh
2014-5-19
i need to .please send for me
Image Analyst
2014-5-19
She downloaded something from the File Exchange. You can do that yourself, you don't need her to send it to you.
shikha pandey
2020-4-25
please provide code for image encrption
Dhayanithi Govindasamy
2020-11-28
编辑:Walter Roberson
2020-11-28
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
2020-11-28
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
2020-11-28
Images are not always 0 to 255. For example CT scan images are routinely int16 values, -32768 to +32767
采纳的回答
更多回答(2 个)
Namitha H.S Gowda
2018-3-25
0 个投票
Can someone please post a simple matlab code for image encryption/decryption
5 个评论
John D'Errico
2018-3-25
NO. We are not allowed to do that.
Walter Roberson
2018-3-26
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
2018-11-12
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
2018-11-13
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
2018-11-13
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
2019-8-5
编辑:Walter Roberson
2019-8-16
0 个投票
2 个评论
sana kadim
2019-8-16
can you tell me the algorithm who can i do?
siraqsana@gmail.com
Walter Roberson
2019-8-16
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.
类别
在 帮助中心 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!