- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 129 for hex (0.01 sec)
-
src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java
// The format is: NtlmChallenge[challenge=0x<hex>,dc=<dc_string>] assertTrue(result.startsWith("NtlmChallenge[challenge=0x")); assertTrue(result.endsWith(",dc=SERVER123]")); // Hexdump.toHexString with size = length * 2 produces 8 uppercase hex chars // The hex should be "010203FF" assertTrue(result.contains("010203FF")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/jcifs/NameServiceClient.java
/** * Determines the address of a host given it's host name. NetBIOS * names also have a <code>type</code>. Types(aka Hex Codes) * are used to distinguish the various services on a host. <a * href="../../../nbtcodes.html">Here</a> is * a fairly complete list of NetBIOS hex codes. Scope is not used but is * still functional in other NetBIOS products and so for completeness it has been
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.4K bytes - Viewed (0) -
src/main/java/jcifs/util/Hexdump.java
* This class provides methods for converting binary data to readable hex format. */ public class Hexdump { /** * Default constructor. */ public Hexdump() { // Utility class - no instance variables to initialize } /** * Array of hexadecimal digit characters used for converting binary data to hex representation. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
@Test @DisplayName("Should convert byte array to hex string with offset and length") void testHexdumpWithOffset() { // Given byte[] data = createTestData(32); // When String result = Hexdump.toHexString(data, 0, data.length); // Then assertNotNull(result); assertFalse(result.isEmpty()); // Should contain hex representation of first bytes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
cmd/hasher.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "crypto/md5" "encoding/hex" "github.com/minio/minio/internal/hash/sha256" ) // getSHA256Hash returns SHA-256 hash in hex encoding of given data. func getSHA256Hash(data []byte) string { return hex.EncodeToString(getSHA256Sum(data)) } // getSHA256Hash returns SHA-256 sum of given data. func getSHA256Sum(data []byte) []byte {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri May 27 13:00:19 UTC 2022 - 1.4K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcBindTest.java
assertEquals("0x0004", getResultMessageMethod.invoke(null, 4), "Should return hex format for unknown code 4"); assertEquals("0x00FF", getResultMessageMethod.invoke(null, 255), "Should return hex format for unknown code 255"); assertEquals("0x1000", getResultMessageMethod.invoke(null, 4096), "Should return hex format for large unknown code"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 22.7K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/Hexdump.java
* * @param val the integer value to convert to hexadecimal characters * @param dst the destination character array to write the hex digits into * @param dstIndex the starting index in the destination array * @param size the number of hex digits to write (will be left-padded with zeros) */ public static void toHexChars(int val, final char dst[], final int dstIndex, int size) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
src[srcIndex + 16] = 0x00; // hex code src[srcIndex + 17] = 0x04; // flags: active // Second name entry (18 bytes) String name2 = "DOMAIN "; System.arraycopy(name2.getBytes("US-ASCII"), 0, src, srcIndex + 19, 16); src[srcIndex + 34] = 0x00; // hex code src[srcIndex + 35] = (byte) 0x84; // flags: group, active
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
@DisplayName("computeResponse: HMAC(server||clientData) prepended to clientData") void testComputeResponse_basic() { // Arrange byte[] key = hex("0102030405060708090A0B0C0D0E0F10"); byte[] serverChallenge = hex("1122334455667788"); byte[] clientData = hex("A0A1A2A3A4"); // Act byte[] result = NtlmUtil.computeResponse(key, serverChallenge, clientData, 0, clientData.length);
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/dcerpc/DcerpcExceptionTest.java
assertEquals(errorCode, exception.getErrorCode(), "Error code should match the input."); assertEquals("0x12345678", exception.getMessage(), "Message should be hex string for unknown error code."); } /** * Test constructor DcerpcException(String msg). */ @Test void testConstructorWithMessage() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)