- changed file name encryption to SIV mode

- vastly improved exception handling, if decryption of a path name fails
This commit is contained in:
Sebastian Stenzel
2015-02-14 18:55:33 +01:00
parent ebdf37ed63
commit 9fdd2f339c
11 changed files with 80 additions and 37 deletions
@@ -158,7 +158,7 @@ public class MainController implements Initializable, InitializationListener, Un
final Path vaultPath;
if (path != null && Files.isDirectory(path)) {
vaultPath = path;
} else if (Files.isRegularFile(path) && path.getParent().getFileName().toString().endsWith(Vault.VAULT_FILE_EXTENSION)) {
} else if (path != null && Files.isRegularFile(path) && path.getParent().getFileName().toString().endsWith(Vault.VAULT_FILE_EXTENSION)) {
vaultPath = path.getParent();
} else {
return;