how can i modify this code to encrypt an image?what is an encryption key?how can i include this key to generate pseudo random sequence?

1 view (last 30 days)
I=double(imread('filename')); [m n]=size(I); for i=1:m for j=1:n r=randi(m,n,255) end end p=xor(I,r)

Answers (0)

Categories

Find more on Encryption / Cryptography in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!