Encryption/Coding and Minimzing Data

by

 

this program used in the Encryption/Coding and Minimize array size at the same.

[KEY]=Key_generater(StartValue,MAX_VALUE,Factor)
function [KEY]=Key_generater(StartValue,MAX_VALUE,Factor)
% Key_generater....
%this program is designed by 
%Mohammed Mustafa Siddeq
%Date:- 12 -NOV.- 2011
%------------------------------- Program -------------------
% input to function :-
%             StartValue : the user select the start value of the key ...
%             MAX_VALUE  : Maximum value is used to generate key 2,3,..etc. 
%             Factor=2;  : add value to each key generated................
%
% output :- Geenrated stream of keys ... [KEY]
% for example :- [KEY]=Key_generater(0.1, 255, 2);
% output is :- KEY=[0.1,27.5,7014.5];
           

Keysize=3; %% Variable for user.....
KEY(1)=StartValue;
for i=2:Keysize
    KEY(i)=(KEY(i-1).*MAX_VALUE)+Factor;
end;
end
    

Contact us