diff --git a/pom.xml b/pom.xml
index fd81fdc19..34170ea51 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
2.1.0-rc1
- 2.4.4
+ 2.4.5
1.1.0
1.1.2
1.1.2
@@ -44,7 +44,7 @@
31.1-jre
2.9.1
18.0.2
- 4.0.0
+ 4.2.1
9.25.4
1.4.4
2.0.3
diff --git a/src/main/java/org/cryptomator/ui/keyloading/hub/HubKeyLoadingModule.java b/src/main/java/org/cryptomator/ui/keyloading/hub/HubKeyLoadingModule.java
index 6e28b8796..a23a5f1b3 100644
--- a/src/main/java/org/cryptomator/ui/keyloading/hub/HubKeyLoadingModule.java
+++ b/src/main/java/org/cryptomator/ui/keyloading/hub/HubKeyLoadingModule.java
@@ -56,8 +56,10 @@ public abstract class HubKeyLoadingModule {
@Named("deviceId")
static String provideDeviceId(DeviceKey deviceKey) {
var publicKey = Objects.requireNonNull(deviceKey.get()).getPublic().getEncoded();
- var hashedKey = MessageDigestSupplier.SHA256.get().digest(publicKey);
- return BaseEncoding.base16().encode(hashedKey);
+ try (var instance = MessageDigestSupplier.SHA256.instance()) {
+ var hashedKey = instance.get().digest(publicKey);
+ return BaseEncoding.base16().encode(hashedKey);
+ }
}
@Provides