Fix media files permission

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-03 13:47:39 +02:00 committed by Alper Öztürk
parent 1794015c1d
commit b523c34d29
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ public final class EncryptionUtils {
}
public static EncryptedFile encryptFile(File file, Cipher cipher) throws InvalidParameterSpecException {
File encryptedFile = new File(file.getAbsolutePath() + ".enc");
File encryptedFile = new File(file.getAbsolutePath() + ".enc.jpg");
encryptFileWithGivenCipher(file, encryptedFile, cipher);
String authenticationTagString = getAuthenticationTag(cipher);
return new EncryptedFile(encryptedFile, authenticationTagString);