protected static function baseConversion($vector, $text)
    {
        foreach ($vector as $key => $value) {
            $char = $value;
            if (is_array($value)) {
                $char = "";
                foreach ($value as $ascii) {
                    $char .= chr($ascii);
                }
            }
            $text = str_replace($key, $char, $text);
        }

        return $text;
    }