Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for nTOWFv1 (0.04 sec)

  1. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

        // Test getNTLM2Response
        @Test
        void testGetNTLM2Response() {
            byte[] nTOWFv1 = NtlmPasswordAuthentication.nTOWFv1("password");
            byte[] serverChallenge = { 1, 2, 3, 4, 5, 6, 7, 8 };
            byte[] clientChallenge = { 9, 10, 11, 12, 13, 14, 15, 16 };
            byte[] response = NtlmPasswordAuthentication.getNTLM2Response(nTOWFv1, serverChallenge, clientChallenge);
            assertNotNull(response);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmUtilTest.java

        @DisplayName("nTOWFv1 equals getNTHash across inputs")
        void testNTOWFv1_delegatesToGetNTHash(String password) {
            // Act
            byte[] h1 = NtlmUtil.nTOWFv1(password);
            byte[] h2 = NtlmUtil.getNTHash(password);
    
            // Assert
            assertArrayEquals(h2, h1, "nTOWFv1 should return NT hash");
            assertEquals(16, h1.length, "NT hash length is 16 bytes");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        /**
         * Creates the NTLM2 response for the supplied information.
         *
         * @param nTOWFv1 the NTOWFv1 hash
         * @param serverChallenge the server challenge bytes
         * @param clientChallenge the client challenge bytes
         * @return the NTLM2 response bytes
         */
        public static byte[] getNTLM2Response(final byte[] nTOWFv1, final byte[] serverChallenge, final byte[] clientChallenge) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmUtil.java

                    tempStr.intern();
                }
            }
        }
    
        /**
         * Generates the NTOWFv1 hash for the given password.
         *
         * @param password the password to hash
         * @return the calculated hash
         */
        public static byte[] nTOWFv1(final String password) {
            return getNTHash(password);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                    // NTLMv1 w/ NTLM2 session sec and key exch all been verified with a debug build of smbclient
    
                    final byte[] responseKeyNT = NtlmPasswordAuthentication.nTOWFv1(password);
                    final byte[] ntlm2Response =
                            NtlmPasswordAuthentication.getNTLM2Response(responseKeyNT, type2.getChallenge(), clientChallenge);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top