Im working on an application that downloads videos (sometimes over 1GB+) to internal iOS file system.
I am using ASIHTTPRequest to download data, that works great, however the complicated bit is the encryption. For encryption I usually use NSData+Encryption
- works great for encryption and decryption of NSData
, however I cannot load video that is over 1GB into RAM so when I do document AES256EncryptWithKey
that just doesn't work.
The other challenge is that how do I play encrypted file? Currently I am using AVPlayer, and I saw there are some methods playing it from HTTP server, but I could find any clean solution from the local storage.
Regarding encryption I could probably use something like:
Memory issues when encrypting/decrypting a large file with RNCryptor on iOS