Can anyone name the encryption algorithm which i have attached here.From where can i get the references for this algorithm?

1 次查看(过去 30 天)
Can anyone name the encryption algorithm which i have attached here.From where can i get the references for this algorithm?

采纳的回答

Geoff Hayes
Geoff Hayes 2014-7-28
Given that the same key is used to encrypt and decrypt the image, then the algorithm is symmetric (simple xor with the image and the key is all that is happening).
It is the generation of the key that is interesting. From keyGen.m, the difference equation
x(n) = 1 - 2*x(n-1)*x(n-1)
is used to generate an 8-bit binary "key" for each pixel in the image (software seems to assume that the image data type is uint8). The values x(n) are in the interval [-1,1], with negative values mapped to zero, and positive values to 1.
If you add the above line of code to the software (it doesn't exist right now, and instead relies on two local variables for x(n) and x(n-1)) you can plot the data and look at the frequency of the values in the sequence
figure;plot(x,'b.');
figure;hist(x,100);
The data looks awfully similar to that which is generated using the logistic map
x(n) = r*x(n-1)*(1-x(n-1))
for r equal to 4. Pay particular attention to the section (given by the link) on Chaos and the logistic map.
While I can't tell you right out what the algorithm is called or which papers to reference, I suggest that you Google logistic map, crypotography, image and review what appears.
Else contact the author of the code! ;)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by