private static function paddingString(int $inputsize, int $blocksize): string
    {
        // Determine the amount of padding to use
        $pad = $blocksize - ($inputsize % $blocksize);

        // Create and return the padding string
        return \str_repeat(\chr($pad), $pad);
    }