- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getPreNTLMResponse (0.07 sec)
-
src/test/java/jcifs/smb/NtlmUtilTest.java
String password15 = "ABCDEFGHIJKLMNO"; // 15 chars, same first 14 byte[] challenge = hex("0102030405060708"); // Act byte[] r14 = NtlmUtil.getPreNTLMResponse(cifsContext, password14, challenge); byte[] r15 = NtlmUtil.getPreNTLMResponse(cifsContext, password15, challenge); // Assert: equal because only first 14 OEM bytes are used
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
assertEquals(auth1.hashCode(), auth2.hashCode()); } // Test getPreNTLMResponse @Test void testGetPreNTLMResponse() { byte[] challenge = { 1, 2, 3, 4, 5, 6, 7, 8 }; byte[] response = NtlmPasswordAuthentication.getPreNTLMResponse("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) -
src/main/java/jcifs/smb/NtlmUtil.java
* @param challenge the server challenge bytes * @return the calculated response * @throws GeneralSecurityException if a cryptographic error occurs */ static public byte[] getPreNTLMResponse(final CIFSContext tc, final String password, final byte[] challenge) throws GeneralSecurityException { final byte[] p14 = new byte[14]; final byte[] p21 = new byte[21];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* * @param password the password to hash * @param challenge the server challenge bytes * @return the ANSI DES hash response */ static public byte[] getPreNTLMResponse(final String password, final byte[] challenge) { final byte[] p14 = new byte[14]; final byte[] p21 = new byte[21]; final byte[] p24 = new byte[24]; byte[] passwordBytes;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
case 0: case 1: // NTLMv1 - deprecated and insecure log.warn("NTLMv1 LM response is deprecated and insecure. Consider using NTLMv2."); return NtlmUtil.getPreNTLMResponse(tc, getPasswordAsCharArray(), chlng); case 2: // NTLMv1 with NTLM response - still insecure log.warn("NTLMv1 NTLM response is deprecated and insecure. Consider using NTLMv2.");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type3Message.java
public static byte[] getLMResponse(final Type2Message type2, final String password) { if (type2 == null || password == null) { return null; } return NtlmPasswordAuthentication.getPreNTLMResponse(password, type2.getChallenge()); } /** * Calculates the LMv2 response for NTLM authentication. * * @param type2 the Type-2 message containing the server challenge
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 24.1K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type3Message.java
throws GeneralSecurityException { if (type2 == null || password == null) { return null; } return NtlmUtil.getPreNTLMResponse(tc, password, type2.getChallenge()); } /** * Calculates the LMv2 response for NTLM authentication. * * @param tc the CIFS context
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0)