From d2e63853aa6731c4662d5efe4c6bf6e7568e00b0 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Thu, 27 Dec 2018 07:49:05 +0100 Subject: change cipher_mode for backup en-/decryption --- src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart/messenger/utils') diff --git a/src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java b/src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java index fd9392132..0441e5751 100644 --- a/src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java +++ b/src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java @@ -19,7 +19,7 @@ import javax.crypto.spec.SecretKeySpec; import de.pixart.messenger.Config; public class EncryptDecryptFile { - private static String cipher_mode = "AES/ECB/PKCS5Padding"; + private static String cipher_mode = "AES/CBC/PKCS5Padding"; public static void encrypt(FileInputStream iFile, FileOutputStream oFile, String iKey) throws IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException { byte[] key = iKey.getBytes("UTF-8"); -- cgit v1.2.3