Remove "." suffix

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2024-04-11 11:49:09 +02:00 committed by Alper Öztürk
parent 9c5d39f301
commit 14d3257036

View file

@ -548,7 +548,7 @@ public final class EncryptionUtils {
}
public static EncryptedFile encryptFile(Context context, File file, Cipher cipher) throws InvalidParameterSpecException, IOException {
File tempEncryptedFile = File.createTempFile(file.getName(), ".", context.getCacheDir());
File tempEncryptedFile = File.createTempFile(file.getName(), null, context.getCacheDir());
encryptFileWithGivenCipher(file, tempEncryptedFile, cipher);
String authenticationTagString = getAuthenticationTag(cipher);
return new EncryptedFile(tempEncryptedFile, authenticationTagString);