From 2e33fe4779e3c84607da5f02081a8263d6460377 Mon Sep 17 00:00:00 2001 From: Govindas Date: Mon, 8 Jun 2020 11:16:16 +0300 Subject: [PATCH] attempt to use SIV --- src/main/java/net/limework/skLimework/AddonPlugin.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/limework/skLimework/AddonPlugin.java b/src/main/java/net/limework/skLimework/AddonPlugin.java index 868ca37..57d6014 100644 --- a/src/main/java/net/limework/skLimework/AddonPlugin.java +++ b/src/main/java/net/limework/skLimework/AddonPlugin.java @@ -69,7 +69,7 @@ public class AddonPlugin extends JavaPlugin { encryptionCipher = null; try { - encryptionCipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); + encryptionCipher = Cipher.getInstance("AES/SIV/PKCS5Padding"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } catch (NoSuchPaddingException e) { @@ -82,7 +82,7 @@ public class AddonPlugin extends JavaPlugin { } decryptionCipher = null; try { - decryptionCipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); + decryptionCipher = Cipher.getInstance("AES/SIV/PKCS5Padding"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } catch (NoSuchPaddingException e) {