Modified the script, and that's what I needed, thanks.
Jochem Maas wrote:
> $secret  = "HalloWorld";
> $encoded = "";
>
> $a = $b = range("a","z");
> shuffle($b);
> $c = array_combine($a, $b);
>
> foreach (str_split(strtolower($secret)) as $v)
>       $encoded .= isset($c[ $v ]) ? $c[ $v ] : $v;
>
> var_dump($c, $secret, $encoded);
>   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to