I want to store files in a secure way for a small period of time, to be able to share the file using FileProvider, because it is sensitive data we want to encrypt the file and just decrypt it on sharing.
I was using this code to encrypt and decrypt the file:
https://developer.android.com/guide/topics/security/cryptography
But I am not sure what kind of modifications I should do in the standard implementation of a FileProvider to provide a copy of an encrypted file.