如何发挥Android的加密视频文件 [英] How to play an encrypted video file in Android

查看:132
本文介绍了如何发挥Android的加密视频文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经历了很多的问题,搜查SO,但我无法找到答案,这就是为什么我问以下问题:

I searched through a lot of questions on SO but I can't find the answer, that's why I ask the following question:

这是Android应用程序应该能够播放加密的视频文件(存储在SD卡上,并取自一个网络服务器)。
该文件必须存放在SD卡上,这样应用程序可以播放视频文件,而无需建立互联网连接。
由于视频文件可能不被复制,该计划是将文件上传到Web服务器时,它们进行加密服务器端。

An Android app should be able to play an encrypted video file (stored on the SD card and retrieved from a webserver). The file has to be stored on the SD card so that the app can play the video file without having an active internet connection. Because the video files may not be copied, the plan is to encrypt them server side when uploading the files to a webserver.

什么是最好的选择吗?

1),我已经看到了运行的本地网络服务器解密该文件(建议,如何做到这一点?)

1) I have seen suggestions for running a local webserver which decrypts the file (and how to do this?)

2),或者我们应该解密文件,将其保存为临时文件,并设置该临时文件作为来源为录像机?

2) or should we decrypt the file, save it as a temporary file and set this temporary file as the source for the videoplayer?

3)完全不同的东西?

3) something completely different?

推荐答案

您试图实现DRM方案,而且是幼稚的。考虑DRM方案和报告回来,如果你无法实现不可能的事。所有你所能希望的就是混淆,而且有大量的这样做的方法(他们都不是安全的,当然)。

You are trying to implement a DRM scheme, and a naive one at that. Look into DRM schemes and report back if you cannot implement the impossible. All you can hope for is obfuscation, and there are plenty of ways of doing that (none of them are secure of course).

这篇关于如何发挥Android的加密视频文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆