aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-12-27 07:49:05 +0100
committerChristian Schneppe <christian@pix-art.de>2018-12-27 07:49:05 +0100
commitd2e63853aa6731c4662d5efe4c6bf6e7568e00b0 (patch)
tree1526c612dc62ab1355781b5d776612162348dea5 /src/main/java/de
parent95d77acfa055c14cff874d77acbed00a1308d780 (diff)
change cipher_mode for backup en-/decryption
Diffstat (limited to 'src/main/java/de')
-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");