Hi,

I am working on implementing following logic

I am calculating index variable value based on length of my ciphertext.

Index Variable P=Mod(l,3) where l is length of ciphertext after converting it into binary

Say ciphertext is 11001011 01111010 10101010 10011001 01010101

This data is five bytes. So l=5 therefore p=2 ((Mod(l,3)) &

then I want to assign index variable to the bits of cipher text in cylic order based on calculated value of index variable

P=0 then

P=1 then

P=2 then after this again p=0

so onBits IndexVariable,P

(11) 2

(00) 0

(10) 1

(11) 2

(01) 0

(11) 1

(10) 2

(10) 0

(10) 1

(10) 2

(10) 0

(10) 1

please provide me directions..

Thanks in Advance !!