- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getUnicodeHash (1.28 sec)
-
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
assertEquals(24, hash.length); } // Test getUnicodeHash behavior based on static LM_COMPATIBILITY setting @Test void testGetUnicodeHashWithDefaultLmCompatibility() { // With default lmCompatibility=3, getUnicodeHash returns empty array for NTLMv2 NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN", "user", "password");
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/smb1/smb1/SigningDigest.java
case 1: case 2: macSigningKey = new byte[40]; auth.getUserSessionKey(transport.server.encryptionKey, macSigningKey, 0); System.arraycopy(auth.getUnicodeHash(transport.server.encryptionKey), 0, macSigningKey, 16, 24); break; case 3: case 4: case 5: macSigningKey = new byte[16];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthentication.java
* {@inheritDoc} * * @see jcifs.smb.NtlmPasswordAuthenticator#getUnicodeHash(jcifs.CIFSContext, byte[]) */ @Override public byte[] getUnicodeHash(final CIFSContext tc, final byte[] chlng) throws GeneralSecurityException { if (this.hashesExternal) { return this.unicodeHash; } return super.getUnicodeHash(tc, chlng); } /** * {@inheritDoc} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
} else if (session.transport.server.encryptedPasswords) { lmHash = auth.getAnsiHash(session.transport.server.encryptionKey); ntHash = auth.getUnicodeHash(session.transport.server.encryptionKey); // prohibit HTTP auth attempts for the null session if (lmHash.length == 0 && ntHash.length == 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java
mockAuth.username = "testuser"; mockAuth.domain = "TESTDOMAIN"; mockAuth.password = "testpass"; when(mockAuth.getAnsiHash(any(byte[].class))).thenReturn(new byte[24]); when(mockAuth.getUnicodeHash(any(byte[].class))).thenReturn(new byte[24]); when(mockAuth.getName()).thenReturn("testuser"); when(mockAuth.getDomain()).thenReturn("TESTDOMAIN");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java
if (server.encryptedPasswords) { this.lmHash = a.getAnsiHash(tc, server.encryptionKey); this.ntHash = a.getUnicodeHash(tc, server.encryptionKey); // prohibit HTTP auth attempts for the null session if (this.lmHash.length == 0 && this.ntHash.length == 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0)