Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for CHAR (5.95 sec)

  1. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            Arrays.fill(decrypted, '\0');
        }
    
        @Test
        public void testEncryptDecryptEmpty() throws Exception {
            char[] plaintext = new char[0];
    
            byte[] encrypted = storage.encryptCredentials(plaintext);
            assertNotNull(encrypted, "Encrypted empty data should not be null");
    
            char[] decrypted = storage.decryptCredentials(encrypted);
            assertNotNull(decrypted, "Decrypted empty data should not be null");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmUtil.java

        }
    
        /**
         * Generates the NT password hash for the given password.
         * This version accepts char[] for better security.
         *
         * @param password the password to hash as char array
         * @return nt password hash
         */
        public static byte[] getNTHash(final char[] password) {
            if (password == null) {
                throw new NullPointerException("Password parameter is required");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/HexdumpTest.java

            // Test integer conversion
            char[] dst1 = new char[8];
            Hexdump.toHexChars(0x1234ABCD, dst1, 0, 8);
            assertEquals("1234ABCD", new String(dst1));
    
            // Test with smaller size
            char[] dst2 = new char[4];
            Hexdump.toHexChars(0xABCD, dst2, 0, 4);
            assertEquals("ABCD", new String(dst2));
    
            // Test with offset
            char[] dst3 = new char[10];
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

        }
    
        /**
         * Test password in equals method
         */
        @Test
        public void testEqualsWithSecurePassword() {
            char[] password1 = "TestPass123!".toCharArray();
            char[] password2 = "TestPass123!".toCharArray();
            char[] password3 = "DifferentPass!".toCharArray();
    
            NtlmPasswordAuthenticator auth1 = new NtlmPasswordAuthenticator("DOMAIN", "user", password1);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SecureCredentialStorage.java

        }
    
        /**
         * Convert char array to byte array (UTF-8)
         */
        private byte[] charsToBytes(char[] chars) {
            if (chars == null) {
                return null;
            }
    
            // Use UTF-8 encoding
            byte[] bytes = new byte[chars.length * 3]; // Max 3 bytes per char in UTF-8
            int byteIndex = 0;
    
            for (char c : chars) {
                if (c < 0x80) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/CsvExtractor.java

         * @return the detected delimiter character
         */
        protected Character detectDelimiter(final String line) {
            final char[] candidates = { ',', '\t', ';', '|' };
            int maxCount = 0;
            char bestDelimiter = ',';
    
            for (final char candidate : candidates) {
                final int count = countOccurrences(line, candidate);
                if (count > maxCount) {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Dec 11 08:38:29 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            assertNotNull(constantTimeMethod, "constantTimeEquals method should exist");
            constantTimeMethod.setAccessible(true);
    
            // Test the method directly
            char[] password1 = "testpassword".toCharArray();
            char[] password2 = "testpassword".toCharArray();
            char[] password3 = "testpassworX".toCharArray();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

        private final BytesRef scratchBytes = new BytesRef();
    
        private final CharsRef scratchChars = new CharsRef();
    
        private int longestMatchEndOffset;
    
        private int ch;
    
        private final char[] readBuffer;
    
        private int readBufferIndex;
    
        private int readBufferLen;
    
        StringBuilder block;
    
        int blkStart;
    
        int nextBlkStart;
    
        private int finalOffset;
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmSspTest.java

            assertEquals('N', (char) type2Bytes[0]);
            assertEquals('T', (char) type2Bytes[1]);
            assertEquals('L', (char) type2Bytes[2]);
            assertEquals('M', (char) type2Bytes[3]);
            assertEquals('S', (char) type2Bytes[4]);
            assertEquals('S', (char) type2Bytes[5]);
            assertEquals('P', (char) type2Bytes[6]);
            assertEquals(0, type2Bytes[7]); // Null terminator
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/core/collection/ArrayUtil.java

         */
        public static char[] addAll(final char[] a, final char[] b) {
            if (a == null) {
                return b;
            }
            if (b == null) {
                return a;
            }
            if (a.length == 0) {
                return b;
            }
            if (b.length == 0) {
                return a;
            }
            final char[] array = (char[]) Array.newInstance(char.class, a.length + b.length);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 41.5K bytes
    - Viewed (0)
Back to top