06-08-2011, 12:00 AM
hello..
please help me by giving java code for steganography for voip....and for given algorithms..in java
1: k=0; p1=0;
2: while (p1≤1.0)
3: p2=0;
4: while (p2≤1.0)
5: p3=1.0−p1−p2;
6: if (0≤p3≤1.0) then
Calculate α and β according to Formula
α=(1+L)pi)/(2pow(i+L-1)*pi);
β=(1-2pow(-(i+L))pi)/((2pow(i+L)-1)pi);;for i=1 to 3;;pi=1
8: if (α==α0) then
9: α*=α; β*=β;
10: p1
*= p1, p2
*=p2; p3
*=p3;
11: return;
12: else if (|α−α0|≤err) then
13: A[k]=α; B[k]=β; C[k]=α/β;
14: P1[k]=p1; P2[k]=p1; P3[k]=p3;
15: k=k+1;
16: end if
17: end if
18: p2=p2+step;
19: end while
20: p1=p1+step;
21: end while
22: i=0; γ=C[0]; opt=0;
23: while (i<k)
24: if (γ>C[i]) then
25: γ=C[i]); opt=i;
26: end if
27: end while
28: p1*=P1[opt];
p2*=P2[opt];
p3*=P3[opt];
29:α*=A[opt]; β*=B[opt]