public function encode($numbers)
    {
        $chars = [];
        $alphabet = $this->alphabet;
        foreach ($numbers as $number) {
            if (isset($alphabet[$number])) {
                $chars[] = $alphabet[$number];
            } else {
                throw new InvalidBase64Input($number);
            }
        }
        return implode('', $chars);
    }