- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getUNIBytes (0.07 sec)
-
src/main/java/jcifs/smb/NtlmUtil.java
final MessageDigest hmac = Crypto.getHMACT64(passwordHash); hmac.update(Strings.getUNIBytes(username.toUpperCase())); hmac.update(Strings.getUNIBytes(domain)); return hmac.digest(); } /** * Generates the NT password hash for the given password. * * @param password the password to hash
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/test/java/jcifs/util/StringsTest.java
} @Nested @DisplayName("Unicode and ASCII Encoding") class UnicodeAndASCIITests { @Test @DisplayName("getUNIBytes should encode string as UTF-16LE") void testGetUNIBytes() { // When byte[] result = Strings.getUNIBytes(TEST_STRING); // Then assertNotNull(result, "Result should not be null");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileBothDirectoryInfoTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
} @Test @DisplayName("Test read string with Unicode") void testReadStringUnicode() { testBlock.setUseUnicode(true); byte[] buffer = Strings.getUNIBytes("Test\0"); String result = testBlock.readString(buffer, 0); assertEquals("Test", result); } @Test @DisplayName("Test read string without Unicode")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
} } MessageDigest hmac = Crypto.getHMACT64(ntHash); hmac.update(Strings.getUNIBytes(this.username.toUpperCase())); hmac.update(Strings.getUNIBytes(this.domain.toUpperCase())); byte[] ntlmv2Hash = hmac.digest(); hmac = Crypto.getHMACT64(ntlmv2Hash); hmac.update(chlng);
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/util/Strings.java
} /** * Encodes a string into UTF-16LE (Unicode Little Endian) bytes. * * @param str the string to encode * @return the string as bytes (UTF16-LE) */ public static byte[] getUNIBytes(final String str) { return getBytes(str, UNI_ENCODING); } /** * Encodes a string into ASCII bytes. * * @param str the string to encode * @return the string as bytes (ASCII)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java
i += 4; Encdec.enc_uint32le(0, this.buf, i); i += 4; Encdec.enc_uint32le(len + 1, this.buf, i); i += 4; System.arraycopy(Strings.getUNIBytes(s), 0, this.buf, i, len * 2); i += len * 2; this.buf[i] = (byte) '\0'; i++; this.buf[i++] = (byte) '\0'; advance(i - this.index); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 10.7K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/ServerMessageBlock.java
// Unicode requires word alignment if ((dstIndex - this.headerStart) % 2 != 0) { dst[dstIndex++] = (byte) '\0'; } System.arraycopy(Strings.getUNIBytes(str), 0, dst, dstIndex, str.length() * 2); dstIndex += str.length() * 2; dst[dstIndex] = (byte) '\0'; dstIndex++; dst[dstIndex++] = (byte) '\0'; } else {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 38.9K bytes - Viewed (0)