Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for encrypt (0.07 sec)

  1. 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;
                }
            };
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. 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=";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  3. 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);
        }
    
        public void test_invertibleCryptography_withEmptyString() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/crypto/CachedCipher.java

        /**
         * Encrypts the given data.
         *
         * @param data
         *            the data to encrypt
         * @return the encrypted data
         */
        public byte[] encrypto(final byte[] data) {
            final Cipher cipher = pollEncryptoCipher();
            byte[] encrypted;
            try {
                encrypted = cipher.doFinal(data);
            } catch (final IllegalBlockSizeException e) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/util/ParameterUtil.java

                        }
                    }
                }
            }
            return paramMap;
        }
    
        /**
         * Encrypts sensitive parameter values.
         *
         * @param value the parameter string
         * @return the encrypted parameter string
         */
        public static String encrypt(final String value) {
            final StringBuilder buf = new StringBuilder();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/UserInfoHelper.java

            deleteUserCodeFromCookie(request);
            return userCode;
        }
    
        /**
         * Creates an encrypted user code from a user ID.
         * The user ID is encrypted using the primary cipher and validated against the configuration.
         *
         * @param userCode the raw user ID to encrypt
         * @return the encrypted and validated user code, or null if invalid
         */
        protected String createUserCodeFromUserId(String userCode) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/WebAuthenticationService.java

        }
    
        /**
         * Stores a web authentication configuration.
         * Parameters are encrypted before storage.
         *
         * @param webAuthentication The web authentication configuration to store
         */
        public void store(final WebAuthentication webAuthentication) {
            webAuthentication.setParameters(ParameterUtil.encrypt(webAuthentication.getParameters()));
            webAuthenticationBhv.insertOrUpdate(webAuthentication, op -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/service/FileAuthenticationService.java

        /**
         * Stores a file authentication configuration.
         * The parameters are encrypted before storage for security.
         *
         * @param fileAuthentication the file authentication configuration to store
         */
        public void store(final FileAuthentication fileAuthentication) {
            fileAuthentication.setParameters(ParameterUtil.encrypt(fileAuthentication.getParameters()));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/FileConfigService.java

         * This method encrypts the configuration parameters before saving and
         * performs an insert or update operation based on whether the configuration exists.
         *
         * @param fileConfig the file configuration to be stored
         */
        public void store(final FileConfig fileConfig) {
            fileConfig.setConfigParameter(ParameterUtil.encrypt(fileConfig.getConfigParameter()));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/service/WebConfigService.java

        }
    
        /**
         * Stores a web configuration.
         * Configuration parameters are encrypted before storage.
         *
         * @param webConfig The web configuration to store
         */
        public void store(final WebConfig webConfig) {
            webConfig.setConfigParameter(ParameterUtil.encrypt(webConfig.getConfigParameter()));
            webConfigBhv.insertOrUpdate(webConfig, op -> {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top