From 01a6475d5ff94b35362c12fa464db6726196e830 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Mon, 17 Oct 2022 17:13:12 +0200 Subject: [PATCH 1/2] replace deprecated method call --- .../cryptomator/ui/keyloading/hub/HubKeyLoadingModule.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 From d619a0cbf4103d6ea89a0d84bdce889442ab9aab Mon Sep 17 00:00:00 2001 From: Sebastian Stenzel Date: Wed, 26 Oct 2022 11:40:09 +0200 Subject: [PATCH 2/2] bump jwt version --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 20a4ffab2..0eb618328 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