LdapTools\Utilities\UserParameters::encodeReservedData PHP Method

encodeReservedData() protected method

Encode the string of reserved data that goes in the first 44 bytes.
protected encodeReservedData ( string $reserved = '' ) : string
$reserved string
return string
    protected function encodeReservedData($reserved = '')
    {
        return hex2bin(str_pad(unpack('H*', $reserved)[1], 44, '20', STR_PAD_RIGHT));
    }