Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getNTLMResponse (0.98 sec)

  1. src/test/java/jcifs/smb/NtlmUtilTest.java

        }
    
        @Test
        @DisplayName("getNTLMResponse: overloads produce equal 24-byte response")
        void testGetNTLMResponse_overloads() throws GeneralSecurityException {
            // Arrange
            String password = "password";
            byte[] challenge = hex("1122334455667788");
    
            // Act
            byte[] r1 = NtlmUtil.getNTLMResponse(password, challenge);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmUtil.java

         * @return the calculated response
         * @throws GeneralSecurityException if a cryptographic error occurs
         */
        public static byte[] getNTLMResponse(final String password, final byte[] challenge) throws GeneralSecurityException {
            return getNTLMResponse(getNTHash(password), challenge);
        }
    
        /**
         * Generate the Unicode MD4 hash for the password associated with these credentials.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertNotNull(response);
            assertEquals(24, response.length);
        }
    
        // Test getNTLMResponse
        @Test
        void testGetNTLMResponse() {
            byte[] challenge = { 1, 2, 3, 4, 5, 6, 7, 8 };
            byte[] response = NtlmPasswordAuthentication.getNTLMResponse("password", challenge);
            assertNotNull(response);
            assertEquals(24, response.length);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

         *
         * @param password the password to hash
         * @param challenge the server challenge bytes
         * @return the Unicode MD4 hash response
         */
        static public byte[] getNTLMResponse(final String password, final byte[] challenge) {
            byte[] uni = null;
            final byte[] p21 = new byte[21];
            final byte[] p24 = new byte[24];
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            case 2:
                // NTLMv1 with NTLM response - still insecure
                log.warn("NTLMv1 NTLM response is deprecated and insecure. Consider using NTLMv2.");
                return NtlmUtil.getNTLMResponse(getPasswordAsCharArray(), chlng);
            case 3:
            case 4:
            case 5:
                // NTLMv2 - secure
                if (this.clientChallenge == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

        public static byte[] getNTResponse(final Type2Message type2, final String password) {
            if (type2 == null || password == null) {
                return null;
            }
            return NtlmPasswordAuthentication.getNTLMResponse(password, type2.getChallenge());
        }
    
        /**
         * Returns the default domain from the current environment.
         *
         * @return The default domain.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/ntlmssp/Type3Message.java

                throws GeneralSecurityException {
            if (type2 == null || passwordHash == null) {
                return null;
            }
            return NtlmUtil.getNTLMResponse(passwordHash, type2.getChallenge());
        }
    
        private void parse(final byte[] material) throws IOException {
            int pos = 0;
            for (int i = 0; i < 8; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top