Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for decryptFromString (0.05 sec)

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

            // Should be valid base64
            assertTrue(encryptedStr.matches("^[A-Za-z0-9+/]*={0,2}$"), "Should be valid Base64 format");
    
            // Decrypt from string
            char[] decrypted = storage.decryptFromString(encryptedStr);
            assertArrayEquals(plaintext, decrypted, "Decrypted string should match original");
    
            // Clean up
            Arrays.fill(plaintext, '\0');
            Arrays.fill(decrypted, '\0');
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureCredentialStorage.java

         *
         * @param encryptedString base64 encoded encrypted credentials
         * @return decrypted credentials
         * @throws GeneralSecurityException if decryption fails
         */
        public char[] decryptFromString(String encryptedString) throws GeneralSecurityException {
            if (encryptedString == null) {
                return null;
            }
            byte[] encrypted = Base64.getDecoder().decode(encryptedString);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top