diff --git a/main/pom.xml b/main/pom.xml index 362f181b1..d39d4f722 100644 --- a/main/pom.xml +++ b/main/pom.xml @@ -25,7 +25,7 @@ 16 - 2.0.0-beta4 + 2.0.0-beta5 1.0.0-beta2 1.0.0-beta2 1.0.0-beta2 diff --git a/main/ui/src/main/java/org/cryptomator/ui/addvaultwizard/CreateNewVaultPasswordController.java b/main/ui/src/main/java/org/cryptomator/ui/addvaultwizard/CreateNewVaultPasswordController.java index e4f02ac8e..b37ffc80c 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/addvaultwizard/CreateNewVaultPasswordController.java +++ b/main/ui/src/main/java/org/cryptomator/ui/addvaultwizard/CreateNewVaultPasswordController.java @@ -172,7 +172,7 @@ public class CreateNewVaultPasswordController implements FxController { private void initializeVault(Path path, CharSequence passphrase) throws IOException { // 1. write masterkey: Path masterkeyFilePath = path.resolve(MASTERKEY_FILENAME); - try (Masterkey masterkey = Masterkey.createNew(csprng)) { + try (Masterkey masterkey = Masterkey.generate(csprng)) { masterkeyFileAccess.persist(masterkey, masterkeyFilePath, passphrase); } diff --git a/main/ui/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java b/main/ui/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java index 28aaa1d71..ee159e072 100644 --- a/main/ui/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java +++ b/main/ui/src/main/java/org/cryptomator/ui/recoverykey/RecoveryKeyFactory.java @@ -88,7 +88,7 @@ public class RecoveryKeyFactory { */ public void resetPasswordWithRecoveryKey(Path vaultPath, String recoveryKey, CharSequence newPassword) throws IOException, IllegalArgumentException { final byte[] rawKey = decodeRecoveryKey(recoveryKey); - try (var masterkey = Masterkey.createFromRaw(rawKey)) { + try (var masterkey = new Masterkey(rawKey)) { Path masterkeyPath = vaultPath.resolve(MASTERKEY_FILENAME); if (Files.exists(masterkeyPath)) { byte[] oldMasterkeyBytes = Files.readAllBytes(masterkeyPath);