S-Box with encryption image

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);

Réponses (1)

Aishwarya
Aishwarya le 23 Déc 2023
Modifié(e) : Walter Roberson le 23 Déc 2023

0 votes

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 commentaire

Walter Roberson
Walter Roberson le 23 Déc 2023
What difference is there between this and what was already posted?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Encryption / Cryptography dans Centre d'aide et File Exchange

Produits

Version

R2019a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by