How to encrypt video from url and save encrypted video to device's SD Card

后端 未结 1 575
野的像风
野的像风 2021-02-06 18:16

In my application I have to use of many video files. Approximately total size of all the video is 500 MB. So I have to decide at the first time when application is install and r

1条回答
  •  梦谈多话
    2021-02-06 18:58

    The error you are seeing has nothing to do with encryption and everything to do with file permissions. Does your app request permission to use the SD card?

    Secondly, why DES? DES is usually substantially slower than AES on modern hardware, and has keys that are far too short for modern use. Also, make sure you are using a GCM, CTR or CBC mode of operation - simple ECB does not have good security properties.

    Do realize that you are implementing a classic DRM scheme: anyone with access to the device and the application private directory will be able to locate the secret key file and decrypt the video, or steal the video in transit.

    0 讨论(0)
提交回复
热议问题