code: private static byte[] ntlmHash(String password) throws Exception {
          byte[] unicodePassword = password.getBytes("UnicodeLittleUnmarked");
          MessageDigest md4 = MessageDigest.getInstance("MD4");
          return md4.digest(unicodePassword);
      }
docs: 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.