25-08-2017, 09:32 PM
hello i need your help to find a solution of this in matlab:
clc
clear
plaintext= 'paymoremoney';
key=[17 17 5;21 18 21;2 2 19];
alpha='abcdefghijklmnopqrstuvwxyz';
L=length(plaintext);
al=length(alpha);
ciphertext=[];
for i=1:L
[u,p]=find(alpha==plaintext(i));
pl=[];
for j=1:L
[u,p]=find(alpha==ciphertext(j));
pL=[pL,p-1];
end
end
it is not working please help me