lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
protected function createByte($input, $bytes = 4, $isHex = true)
    {
        if ($isHex) {
            $byte = hex2bin(str_pad($input, $bytes * 2, '00'));
        } else {
            $byte = str_pad($input, $bytes, "\x00");
        }

        return $byte;
    }
protected function createByte($input, $bytes = 4, $isHex = true)
    {
        if ($isHex) {
            $byte = hex2bin(str_pad($input, $bytes * 2, '00'));
        } else {
            $byte = str_pad($input, $bytes, "\x00");
        }

        return $byte;
    }
protected function createByte ( $ input , $ bytes = 4 , $ isHex = true ) { if ( $ isHex ) { $ byte = hex2bin ( str_pad ( $ input , $ bytes * 2 , '00' ) ) ; } else { $ byte = str_pad ( $ input , $ bytes , "\x00" ) ; } return $ byte ; }
Right padding with 0 to certain length.

@param string $input
@param int    $bytes Length of bytes
@param bool   $isHex Did we provided hex value

@return string
Right padding with 0 to certain length .