'q', '10000' => 'V', '01000' => 'g', '11000' => 'T', '00100' => '8', '10100' => 'z', '01100' => '3', '11100' => 'L', '00010' => '0', '10010' => 'B', '01010' => 'n', '11010' => 'C', '00110' => '2', '10110' => 'R', '01110' => 'w', '11110' => '7', '00001' => 'X', '10001' => '1', '01001' => '9', '11001' => 'k', '00101' => 'h', '10101' => 'S', '01101' => '4', '11101' => 'Y', '00011' => '5', '10011' => '6', '01011' => 'M', '11011' => 'j', '00111' => 'D', '10111' => 'p', '01111' => 'f', '11111' => 'x' ); $id = intval($_GET['id']); // ID mit 283 multiplizieren und mit etwas Zufall würzen $id = $id * 283 + rand(0, 282); // In Binärzahl umwandeln $id_bin = decbin($id); // Mit Nullen auffüllen, falls nötig if (strlen($id_bin) % 5 > 0) $id_bin = str_repeat('0', 5 - (strlen($id_bin) % 5)).$id_bin; // In 5er Blöcke zerlegen $chars = explode(' ',chunk_split(strrev($id_bin), 5, ' ')); // Geheimcode abfragen und einsetzen $ids = ''; foreach($chars as $bin) { $ids .= $codes[$bin]; } // Und fertig. $url = "http://www.studivz.net/profile.php?ids=".$ids; echo ''.$url.''; ?>