From 4d97586f8215a8e50083b40df77dd7b1bcd36d60 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Sat, 20 Aug 2022 12:27:17 +0100 Subject: [PATCH] Log exception if AES decryption fails using specific algorithm settings. --- src/main/java/org/qortal/arbitrary/ArbitraryDataReader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/qortal/arbitrary/ArbitraryDataReader.java b/src/main/java/org/qortal/arbitrary/ArbitraryDataReader.java index 028eea78..b537caba 100644 --- a/src/main/java/org/qortal/arbitrary/ArbitraryDataReader.java +++ b/src/main/java/org/qortal/arbitrary/ArbitraryDataReader.java @@ -414,6 +414,7 @@ public class ArbitraryDataReader { this.decryptUsingAlgo("AES/CBC/PKCS5Padding"); } catch (DataException e) { + LOGGER.info("Unable to decrypt using specific parameters: {}", e.getMessage()); // Something went wrong, so fall back to default AES params (necessary for legacy resource support) this.decryptUsingAlgo("AES");