Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testEncryptDecryptText (0.08 sec)

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

            final byte[] decrypted = cipher.decrypt(encrypted);
    
            assertThat(encrypted, is(not(original)));
            assertArrayEquals(original, decrypted);
        }
    
        @Test
        public void testEncryptDecryptText() {
            final CachedCipher cipher = new CachedCipher();
            cipher.setKey("mySecretKey");
    
            final String original = "Hello World";
            final String encrypted = cipher.encryptText(original);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top