- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for decryptFromString (0.47 seconds)
-
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);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
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'); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0)