aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java2
1 files changed, 1 insertions, 1 deletions
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");