Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testEncryptDecryptBytes (0.1 seconds)

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

    import static org.junit.Assert.assertThat;
    
    import org.junit.Test;
    
    /**
     * 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);
    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)
Back to Top