Преглед на файлове

wipe pw before losing reference

[ci skip]
Sebastian Stenzel преди 3 години
родител
ревизия
85a5146d4b
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/main/java/org/cryptomator/ui/keyloading/masterkeyfile/MasterkeyFileLoadingStrategy.java

+ 1 - 0
src/main/java/org/cryptomator/ui/keyloading/masterkeyfile/MasterkeyFileLoadingStrategy.java

@@ -100,6 +100,7 @@ public class MasterkeyFileLoadingStrategy implements KeyLoadingStrategy {
 	public boolean recoverFromException(MasterkeyLoadingFailedException exception) {
 		if (exception instanceof InvalidPassphraseException) {
 			this.wrongPassphrase = true;
+			Arrays.fill(passphrase, '\0');
 			this.passphrase = null;
 			return true; // reattempting key load
 		} else {