Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testDES (0.03 sec)

  1. src/test/java/jcifs/util/CryptoTest.java

            assertArrayEquals(plaintext, decrypted);
            assertNotEquals(new String(plaintext), new String(encrypted));
        }
    
        @Test
        @DisplayName("Should perform DES encryption/decryption")
        void testDES() throws Exception {
            // Given
            byte[] key = "testkey1".getBytes(); // 8 bytes for DES
            byte[] plaintext = "12345678".getBytes(); // 8 bytes (DES block size)
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top