I am creating an ePub Reader App
. Currently, the app can render the ePub file from local storage. But my intention is not to render the open (unencrypted) epub file but rather the encrypted one.
What my app basically wants to do is
- download the epub file from a server through the app
- then encrypt the epub file before storing on the mobile storage
- render the encrypted epub file on the app
I want to implement the feature similar to youtube offline videos
in my ebook app. As we know youtube stores the offline videos as encrypted exo files
and displays them only through the youtube app. I want the downloaded epub files to be displayed only on our app but nothing else.
Is it possible to encrypt the epub
file as a whole or if possible as separate encrypted files like youtube?
My main question is how to encrypt and display the encrypted epub file in the app.
PS. I am using react-native for app development