Playing encrypted video

后端 未结 6 966
小蘑菇
小蘑菇 2020-12-23 18:20

What I want to do is next: We need to protect the video content(encrypt it) and be able to play it.

Tricky part is that we do not want to load everything into memory

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 18:34

    Just about every widely used encryption algorithm works on blocks of sizes between 128 and 256 bits – and will happily decrypt only a few of these at a time, just fine for streaming. Check out, e.g., Crypto++ for a software library that has streaming interfaces. (I.e., you just open a file, put a decrypting filter around that, and then just continue pretty much like with any other file.)

提交回复
热议问题