Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mySecretKey (0.09 sec)

  1. src/test/java/org/codelibs/core/crypto/CachedCipherTest.java

    /**
     * Tests for {@link CachedCipher}.
     */
    public class CachedCipherTest {
    
        @Test
        public void testEncryptDecryptBytes() {
            final CachedCipher cipher = new CachedCipher();
            cipher.setKey("mySecretKey");
    
            final byte[] original = "Hello World".getBytes();
            final byte[] encrypted = cipher.encrypt(original);
            final byte[] decrypted = cipher.decrypt(encrypted);
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/crypto/CachedCipher.java

     * </ul>
     * <p>
     * <strong>Usage Example:</strong>
     * </p>
     * <pre>
     * CachedCipher cipher = new CachedCipher();
     * cipher.setKey("mySecretKey");
     *
     * // Encrypt text
     * String encrypted = cipher.encryptText("Hello World");
     *
     * // Decrypt text
     * String decrypted = cipher.decryptText(encrypted);
     *
     * // For AES encryption
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top