Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 43 for encrypto (0.2 seconds)

  1. src/main/java/org/codelibs/core/crypto/CachedCipher.java

        /**
         * Encrypts the given data with the specified key.
         *
         * @param data
         *            the data to encrypt
         * @param key
         *            the key to use for encryption
         * @return the encrypted data
         */
        public byte[] encrypt(final byte[] data, final Key key) {
            final Cipher cipher = pollEncryptoCipher(key);
            byte[] encrypted;
            try {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/crypto/CachedCipherTest.java

            cipher.setKey("mySecretKey");
    
            final byte[] original = "Hello World".getBytes();
            final byte[] encrypted = cipher.encrypto(original);
            final byte[] decrypted = cipher.decrypto(encrypted);
    
            assertThat(encrypted, is(not(original)));
            assertArrayEquals(original, decrypted);
        }
    
        @Test
        @SuppressWarnings("deprecation")
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/helper/RoleQueryHelper.java

         * Parses the role set from a string.
         * @param value The string to parse.
         * @param encrypted Whether the string is encrypted.
         * @param roleSet The set of roles.
         */
        protected void parseRoleSet(final String value, final boolean encrypted, final Set<String> roleSet) {
            String rolesStr = value;
            if (encrypted && cipher != null) {
                try {
                    rolesStr = cipher.decryptoText(rolesStr);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  4. 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)
  5. src/test/java/org/codelibs/fess/util/ParameterUtilTest.java

            assertEquals(expect, ParameterUtil.encrypt(value));
    
            value = "";
            expect = "";
            assertEquals(expect, ParameterUtil.encrypt(value));
    
            value = "\n";
            expect = "";
            assertEquals(expect, ParameterUtil.encrypt(value));
    
            value = "=";
            expect = "unknown.1=";
            assertEquals(expect, ParameterUtil.encrypt(value));
    
            value = "=1\n=";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessCookieResourceProviderTest.java

                @Override
                public String encrypt(String plainText) {
                    return "encrypted:" + plainText;
                }
    
                @Override
                public String decrypt(String cryptedText) {
                    return cryptedText.startsWith("encrypted:") ? cryptedText.substring("encrypted:".length()) : cryptedText;
                }
            };
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

      ) {
        enum class Type {
          Handshake,
          Plaintext,
          Encrypted,
          Setup,
          Unknown,
        }
    
        val type: Type
          get() =
            when {
              message == "adding as trusted certificates" -> Type.Setup
              message == "Raw read" || message == "Raw write" -> Type.Encrypted
              message == "Plaintext before ENCRYPTION" || message == "Plaintext after DECRYPTION" -> Type.Plaintext
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/RoleQueryHelperTest.java

            Set<String> roleSet;
            boolean encrypted;
            String value;
    
            encrypted = false;
            value = "";
            roleSet = decodedRoleList(roleQueryHelperImpl, value, encrypted);
            assertEquals(0, roleSet.size());
    
            encrypted = false;
            value = "role1";
            roleSet = decodedRoleList(roleQueryHelperImpl, value, encrypted);
            assertEquals(0, roleSet.size());
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  9. CLAUDE.md

    ├── collection/  # Enhanced collections (LruHashMap, CaseInsensitiveMap)
    ├── concurrent/  # Concurrency utilities
    ├── convert/     # Type conversion (*ConversionUtil)
    ├── crypto/      # Cipher & encryption (CachedCipher)
    ├── exception/   # Runtime exception wrappers
    ├── io/          # I/O & resource utilities
    ├── jar/         # JAR file utilities
    ├── lang/        # Reflection & language utilities
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Mar 12 03:38:56 GMT 2026
    - 3K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              // Consuming server Finished handshake message
              // Produced ClientHello handshake message
              //
              // Raw write
              // Raw read
              // Plaintext before ENCRYPTION
              // Plaintext after DECRYPTION
              val message = record.message
              val parameters = record.parameters
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.9K bytes
    - Click Count (0)
Back to Top