Reputation: 801
I have an ios application that contains video files in it. I'm concerned about users with jailbroken phones being able to rip these videos out of the app.
One of the solutions I thought might work would be to encrypt the videos, and save it in library and at the time of playing I would decrypt it and play it .. But the problem is since the video are of bigger size , encryption takes a long time .
I am looking for some alternatives.. please help
Upvotes: 1
Views: 2157
Reputation: 1051
In practice, keeping users from access video files while still allowing users to, well, access video files, tends to rely on just making it annoying enough that users decide they have better things to do.
Basically, make people jump through hoops to access a file, while your app handles that for them. Randomly generate time limited URLs in response to a request with authentication details to an secret https URL which changes regularly. Use a custom format which your app can read, but other people need to mess around with to read. Ultimately, a user can always reverse engineer your app to access whatever keys you're using, use a packet sniffer to copy the stream as the app is playing it, or one of a dozen other methods. All you can do is try to make it harder to do.
Upvotes: 1
Reputation: 73628
Its a good idea to not package media like videos into your app binary. Since it has some negatives -
So a better approach is to provide http
links to the media in the app code. So for you you would hardcode the link in your app code like http://mywebsite.com/myvideo.mp4
. That way its kinda secure, plus if you need to change the video all you need to do is replace this myvideo.mp4
with the new video and your app need not be touched at all.
Upvotes: 0