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);
    }
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);
    }
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 ) ; }
Create the padding string that will be appended to the input.

@param int $inputsize Size of the input in bytes
@param int $blocksize Blocksize in bytes
@return string
Create the padding string that will be appended to the input .