Sie sind auf Seite 1von 2

AIM: TO STUDY AND IMPLEMENT A5 ENCRYPTION ALGORITHM USING MATLAB.

PROGRAM
clc; clear all; random=randint(1,1,10); z=input('Enter the message','s'); str=zeros(1,length(z)); for i=1:length(z); str(1,i)=z(i)+random; end disp('Encrypted output'); disp(char(str)); for j=1:length(z); str(1,j)=str(1,j)-random; end disp('decrypted output'); disp(char(str));

OUTPUT Enter the message mobile system communication Encrypted output )vxkrun)||}nv)lxvv~wrlj}rxw decrypted output mobile system communication

Das könnte Ihnen auch gefallen