matlab implementation for rc4 encryption algorithm
#1

I am working on a video steganography project in which i have to use genetic algorithm also. I need RC4 encryption for the binary string i obtained b converting the image. Code for the implementation would be highly appreciated. Thanks
Reply
#2
matlab implementation for rc4 encryption algorithm

function ef = rc4full(pf,ki)
s = rc4key(ki);
disp(s);
s = uint8(s);
j0 = 0;
i0 = 0;
r = prga(s, pf);
disp®;
v = uint8(pf);
C = bitxor(v,r);
disp©;
data_show =dec2hex©;
ef = data_show;
function sc=rc4key(key)
for i0 = 0:255
sc(i0+1) = i0+1;
end
j0 = 0;
for i0 = 0:255
j0 = mod(j0 + sc(i0+1) + key(mod(i0, length(key)) + 1), 256);
tmp = sc(i0+1);
sc(i0+1) = sc(j0+1);
sc(j0+1) = tmp;
end
function r = prga(sc, data)
i0=0; j0=0; x=[]; t=[];
for x=0:length(data)-1
i0 = mod( (i0+1), 256);
j0 = mod( j0 + sc(i0+1), 256);
tmp = sc(i0+1);
sc(i0+1) = sc(j0+1);
sc(j0+1) = tmp;
r(x+1) = sc(mod( sc(i0+1) + sc(j0+1), 256)+1);
end
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: verilog code for rc4 encryption and decryption, design and implementation of rijndael algorithm for gsm encryption, vhdl code for rc4 algorithm, matlab implementation for rc4 encryption algorithm, advantages and disadvantages of rc4 algorithm, source code java encryption rc4 image, rc4 rc5 cryptography algorithm solved example,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  source code for rsa encryption and decryption in java 2 8,347 29-05-2017, 04:21 PM
Last Post: Meghna Jadhav
  image encryption and decryption using rsa algorithm in matlab 2 8,250 29-05-2017, 04:17 PM
Last Post: Priyanka Bidikar
  download liver tumor ct scan image in matlab with source code 4 8,398 21-05-2017, 09:54 PM
Last Post: abdulrahmanmashaal
  MATLAB codes needed for powerline communication 1 8,408 12-04-2017, 05:00 PM
Last Post: jaseela123d
  source code for task scheduling using genetic algorithm using java 2 8,874 11-04-2017, 08:31 PM
Last Post: Guest
  vhdl code for radix 2 modified booth algorithm 4 1,066 04-04-2017, 10:24 AM
Last Post: Garlapati nikitha
  matlab code for wavelet based ofdm transmitter 1 959 24-02-2017, 11:18 AM
Last Post: ijasti
  code to extract brain tumor detection using matlab 2 1,103 17-10-2016, 04:32 PM
Last Post: girish123ak
  secure chat using RSA algorithm karthik1218 2 2,632 14-10-2016, 02:48 PM
Last Post: info togel
  f5 algorithm steganography matlab code 2 906 04-10-2016, 03:00 AM
Last Post: [email protected]

Forum Jump: