- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for encryptCredentials (0.4 seconds)
-
src/main/java/jcifs/util/SecureCredentialStorage.java
this.masterKey = deriveKey(masterPassword, this.salt); // Clear the master password after use Arrays.fill(masterPassword, '\0'); } public byte[] encryptCredentials(char[] plaintext) throws GeneralSecurityException { checkNotDestroyed(); if (plaintext == null) { return null; } // Convert char[] to byte[] for encryption
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
char[] plaintext = "SamePassword".toCharArray(); // Encrypt twice byte[] encrypted1 = storage.encryptCredentials(plaintext.clone()); byte[] encrypted2 = storage.encryptCredentials(plaintext.clone()); // Should produce different ciphertexts due to random IV
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)