Steganography With PHP
Posted: Fri Apr 06, 2007 12:06 am
feyd | Please use
so i want to change RGB in X and Y (X and Y, i generate with Pseudo random number generator) with new RGB. The problem is, for example:
X= 128, Y=6=> have R: 255 G:255 B: 255 change into R: 255 G:255 B: 255
X= 222, Y=12=> have R: 255 G:255 B: 255 change into R: 255 G:254 B: 255
the problem is, all position pixel that have same RGB with those position are follow to change with the last RGB.. so X=128 Y=6 change into R: 255 G:254 B: 255.
I really need help for this problem. It will be glad, if some of you could help me to solve this problem.. Thanks alot
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi.. i'm irena, right now i'm doing my undergraduate thesis.. steganography in PHP..in a different method... i have script :Code: Select all
$m=0;
for($p=0;$p<ceil($iterasi/3);$p++)
{
$x=($m_output1[$p]%$lebar) - 1;
$y=floor($m_output1[$p]/$lebar);
$i=imagecolorat($pic, $x, $y);
$col=imagecolorsforindex($pic,$i);
$col['red']=$nilaired[$m];
$col['green']=$nilaigreen[$m];
$col['blue']=$nilaiblue[$m];
$red_set[$p]=$col['red'];
$green_set[$p]=$col['green'];
$blue_set[$p]=$col['blue'];
//print "<br>$x $y $red_set[$p] $green_set[$p] $blue_set[$p]";
imagecolorset($pic,$i,$red_set[$p],$green_set[$p],$blue_set[$p]);
$m++;
}
$stego = "hasil/stego_".basename($fileCover);
imagegif($pic,$stego);X= 128, Y=6=> have R: 255 G:255 B: 255 change into R: 255 G:255 B: 255
X= 222, Y=12=> have R: 255 G:255 B: 255 change into R: 255 G:254 B: 255
the problem is, all position pixel that have same RGB with those position are follow to change with the last RGB.. so X=128 Y=6 change into R: 255 G:254 B: 255.
I really need help for this problem. It will be glad, if some of you could help me to solve this problem.. Thanks alot
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]