S-Box with encryption image

3 views (last 30 days)
omar A.alghafoor
omar A.alghafoor on 31 Jul 2020
Commented: Walter Roberson on 23 Dec 2023
Hi .......
there are problem in time for encryption image by s-bos (16*16) GF, how are reduce time execution for this code ,
note : I use RGB for encryption .
x = dec2bin(layer_image(i,j),8);
l = x(1, 1 : 4);
r = x(1, 5 : 8);
ld = bin2dec(l); % row
rd = bin2dec(r); % column
layer_image(i,j)=SBox(ld+1,rd+1);

Answers (1)

Aishwarya
Aishwarya on 23 Dec 2023
Edited: Walter Roberson on 23 Dec 2023
x = dec2bin(layer_image(i,j),8);
l = x(1, 1 : 4);
r = x(1, 5 : 8);
ld = bin2dec(l); % row
rd = bin2dec(r); % column
layer_image(i,j)=SBox(ld+1,rd+1);
  1 Comment
Walter Roberson
Walter Roberson on 23 Dec 2023
What difference is there between this and what was already posted?

Sign in to comment.

Categories

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

Tags

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!