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!