Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 40 for plaintext (0.09 seconds)

  1. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java

            assertNotNull(cryptographer);
    
            String plainText = "Hello, World!";
            String encrypted = cryptographer.encrypt(plainText);
            assertNotNull(encrypted);
            assertFalse(plainText.equals(encrypted));
    
            String decrypted = cryptographer.decrypt(encrypted);
            assertEquals(plainText, decrypted);
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            // Test with very long password
            char[] plaintext = new char[10000];
            Arrays.fill(plaintext, 'X');
    
            byte[] encrypted = storage.encryptCredentials(plaintext);
            assertNotNull(encrypted, "Encrypted long password should not be null");
            assertTrue(encrypted.length > plaintext.length, "Encrypted data should be larger due to IV and auth tag");
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  3. src/main/java/jcifs/util/SecureCredentialStorage.java

        }
    
        public byte[] encryptCredentials(char[] plaintext) throws GeneralSecurityException {
            checkNotDestroyed();
    
            if (plaintext == null) {
                return null;
            }
    
            // Convert char[] to byte[] for encryption
            byte[] plaintextBytes = charsToBytes(plaintext);
    
            try {
                // Generate random IV
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  4. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Verify transform header is present (first 52 bytes)
            assertTrue(encrypted.length >= 52, "Encrypted message should include transform header");
    
            // When - Decrypt
            byte[] decrypted = context.decryptMessage(encrypted);
    
            // Then - Verify decryption
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  5. internal/etag/etag_test.go

    var decryptTests = []struct {
    	Key       []byte
    	ETag      ETag
    	Plaintext ETag
    }{
    	{ // 0
    		Key:       make([]byte, 32),
    		ETag:      must("3b83ef96387f14655fc854ddc3c6bd57"),
    		Plaintext: must("3b83ef96387f14655fc854ddc3c6bd57"),
    	},
    	{ // 1
    		Key:       make([]byte, 32),
    		ETag:      must("7b976cc68452e003eec7cb0eb631a19a-1"),
    		Plaintext: must("7b976cc68452e003eec7cb0eb631a19a-1"),
    	},
    	{ // 2
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                    len += cipher.doFinal(output, len);
    
                    plaintext = new byte[ciphertext.length];
                    System.arraycopy(output, 0, plaintext, 0, ciphertext.length);
                }
    
                return plaintext;
            } catch (final Exception e) {
                throw new CIFSException("Failed to decrypt message", e);
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            private String subject;
            private String plainText;
    
            public void setSubject(String subject) {
                this.subject = subject;
            }
    
            public void setPlainText(String plainText) {
                this.plainText = plainText;
            }
    
            @Override
            public OptionalThing<String> getSavedSubject() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 20K bytes
    - Click Count (0)
  8. internal/etag/etag.go

    	if !etag.IsEncrypted() {
    		return etag, nil
    	}
    	mac := hmac.New(sha256.New, key)
    	mac.Write([]byte(HMACContext))
    	decryptionKey := mac.Sum(nil)
    
    	plaintext := make([]byte, 0, 16)
    	etag, err := sio.DecryptBuffer(plaintext, etag, sio.Config{
    		Key: decryptionKey,
    	})
    	if err != nil {
    		return nil, err
    	}
    	return etag, nil
    }
    
    // Parse parses s as an S3 ETag, returning the result.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri May 16 14:27:42 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  9. docs/en/docs/virtual-environments.md

    ```plaintext
    /home/user/code/awesome-project/.venv/bin/python
    ```
    
    and use that one.
    
    ////
    
    //// tab | Windows
    
    ```plaintext
    C:\Users\user\code\awesome-project\.venv\Scripts;C:\Windows\System32
    ```
    
    That means that the system will now start looking first for programs in:
    
    ```plaintext
    C:\Users\user\code\awesome-project\.venv\Scripts
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 22.1K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/helper/PermissionHelperTest.java

            assertNull(permissionHelper.encode("(deny){group}"));
        }
    
        @Test
        public void test_passthroughValues() {
            assertEquals("plaintext", permissionHelper.encode("plaintext"));
            assertEquals("plaintext", permissionHelper.decode("plaintext"));
    
            assertEquals("abc", permissionHelper.encode("abc"));
            assertEquals("abc", permissionHelper.decode("abc"));
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 14K bytes
    - Click Count (0)
Back to Top