简体   繁体   中英

Protect associated files in app

I am making an app which shows learning videos for kids. The videos used in this app are stored in an external SD card . I want to know how can I encrypt these files so that no one can access these video files. My idea is to encrypt the video files and decrypt these video files dynamically, ie, when one is accessing a particular file, then only that video will decrypt and played but not stored. How can I achieve this? Has anyone did this ? Any better ideas ?

There is no need to encrypt files that are used by your app. Every app has it's own private directory where you can store files that cannot be accessed by other apps or the user ( link ).

Without having more information about your app it's hard to judge but in general it's better to save video's in a cache directory ( link ). This cache directory is also private.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM