开发者

How can I Encrypt Video in Real Time?

开发者 https://www.devze.com 2022-12-15 08:47 出处:网络
I\'m looking for a, preferably open source, library or program to encrypt video in real time for security purposes, not DRM. I\'ve found several decent algorithms, RVEA and VEA, but before I try hacki

I'm looking for a, preferably open source, library or program to encrypt video in real time for security purposes, not DRM. I've found several decent algorithms, RVEA and VEA, but before I try hacking together an imple开发者_开发知识库mentation I wanted to see if one already existed or if there was a better way of doing this since these methods are a little old.


I'd suggest used AES-128 in counted block (not the usual chained block) mode. It's easily done using openssl, and it's available in hardware on most all mobile and CE devices, so those become options should you had that way in the future.

One place it's used is in the chunked HTTP streaming from apple per this spec: https://datatracker.ietf.org/doc/html/draft-pantos-http-live-streaming-02


You are a little vague on the requirements, but if you are simply looking for a very fast method of encrypting a stream of data, then RC4 is still not a bad way to go. It is extremely fast; I think it will be faster than any credible block cipher. And you can use an arbitrarily long key.

There seems to be quite a bit of talk about RC4 being "old" and needing to be replaced, but I do not think there are any published breaks of it. Of course, if I were the bad guy who broke it, I probably would keep that bit of information close to my chest and use it for a bit of old-fashioned thieving. So who really knows. The primary issue that I think is published is that you should cycle the s-box for some number of iterations before using the keystream. A pdf describing that statistical weakness is available here.

And this algorithm is available in OpenSSL, which also meets your requirements. I honestly can't say how any of this relates to RVEA; I know nothing about it. A very quick google search turns up mostly hits that require logins to learn about it. Although, one opaque reference seemed to imply that RVEA can use any number of ciphers. Maybe it already supports RC4.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号