picturecipher icon indicating copy to clipboard operation
picturecipher copied to clipboard

Selective Pixel Modification

Open keitharm opened this issue 11 years ago • 1 comments

Example code

$width  = range(0, $argv[1]);
$height = range(0, $argv[2]);
srand($argv[3]);
shuffle($width);
shuffle($height);
echo "(" . $width[array_rand($width)] . ", " . $height[array_rand($height)] . ")\n";
echo "(" . $width[array_rand($width)] . ", " . $height[array_rand($height)] . ")\n";
echo "(" . $width[array_rand($width)] . ", " . $height[array_rand($height)] . ")\n";
echo "(" . $width[array_rand($width)] . ", " . $height[array_rand($height)] . ")\n";
echo "(" . $width[array_rand($width)] . ", " . $height[array_rand($height)] . ")\n";

keitharm avatar Jun 25 '14 19:06 keitharm

Possibly implement with #12 and then use password as seed for shuffling pixel coordinates around for pixels to modify.

keitharm avatar Jun 25 '14 19:06 keitharm