VizHash_GD '.$VERSION.' - Visual Hash implementation in php4+GD.
'; echo 'See homepage for more details.'; echo 'This is free software under the zlib/libpng licence
'; echo '
Enter string to hash: '; echo '
'; echo '
VizHash_GD accepts the following parameters:
'; echo '
t : string to hash
width: width of image (in pixels) (default:80, max:256)
height: height of image (in pixels) (default:80, max:256)

'; echo 'Examples: "hi"'; $example_url=$_SERVER['PHP_SELF'].'?t=hi'; echo '
12x12:
'; echo '
16x16:
'; echo '
32x32:
'; echo '
64x64:
'; echo '
128x32:
'; echo '
256x256:
'; echo ''; exit; } $text = $_GET['t']; // Size of vizshash in pixels (default:80x80) $width=80; if (isset($_GET['width'])) { $width=$_GET['width']; } $height=80; if (isset($_GET['height'])) { $height=$_GET['height']; } if ($width>256) die("width is too big."); if ($height>256) die("height is too big."); // We hash the input string. (We don't use hash() to stay compatible with php4.) $hash=sha1($text).md5($text); $hash=$hash.strrev($hash); # more data to make graphics // We convert the hash into an array of integers. $VALUES=array(); for($i=0; $i