private static byte[] ntlmHash(final char[] password) {
        final byte[] unicodePassword = new ByteArrayBuilder()
                .charset(UNICODE_LITTLE_UNMARKED).append(password).toByteArray();
        final MD4 md4 = new MD4();
        md4.update(unicodePassword);
        return md4.getOutput();
    }
Creates the NTLM Hash of the user's password.

@param password
           The password.

@return The NTLM Hash of the given password, used in the calculation of
        the NTLM Response and the NTLMv2 and LMv2 Hashes.
httpclient5/src/main/java/org/apache/hc/client5/http/impl/auth/NTLMEngineImpl.java