diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-12-27 07:49:05 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-12-27 07:49:05 +0100 |
commit | d2e63853aa6731c4662d5efe4c6bf6e7568e00b0 (patch) | |
tree | 1526c612dc62ab1355781b5d776612162348dea5 /src/main/java | |
parent | 95d77acfa055c14cff874d77acbed00a1308d780 (diff) |
change cipher_mode for backup en-/decryption
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/EncryptDecryptFile.java | 2 |
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"); |