- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getNTHash (0.06 sec)
-
src/test/java/jcifs/smb/NtlmUtilTest.java
@DisplayName("getNTHash: null password throws NPE with message") void testGetNTHash_null() { NullPointerException ex = assertThrows(NullPointerException.class, () -> NtlmUtil.getNTHash((String) null)); assertEquals("Password parameter is required", ex.getMessage()); } @ParameterizedTest @ValueSource(strings = { "", "password", "pässwörd", "1234567890abcdef" }) @DisplayName("nTOWFv1 equals getNTHash across inputs")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmUtil.java
* * @return the calculated mac */ public static byte[] nTOWFv2(final String domain, final String username, final String password) { return nTOWFv2(domain, username, getNTHash(password)); } /** * Generates the NTOWFv2 hash for the given domain, username, and password hash. * * @param domain the authentication domain * @param username the username
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/smb/NtlmPasswordAuthenticator.java
*/ public void getUserSessionKey(CIFSContext tc, byte[] chlng, byte[] dest, int offset) throws SmbException { try { MessageDigest md4 = Crypto.getMD4(); byte[] ntHash = getNTHash(); switch (tc.getConfig().getLanManCompatibility()) { case 0: case 1: case 2: md4.update(ntHash); md4.digest(dest, offset, 16);
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/ntlmssp/Type3Message.java
setLMResponse(null); setNTResponse(null); return; } if (passwordHash == null) { passwordHash = NtlmUtil.getNTHash(password); } switch (tc.getConfig().getLanManCompatibility()) { case 0: case 1: if (!getFlag(NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY)) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 32.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
if (this.auth instanceof NtlmNtHashAuthenticator) { return new Type3Message(this.transportContext, msg2, this.targetName, this.auth.getNTHash(), this.auth.getUserDomain(), this.auth.getUsername(), this.workstation, this.ntlmsspFlags); } // Use secure password handling String passwordString = null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0)