Can AES Crypt support video streaming?

Discussion related to AES Crypt, the file encryption software for Windows, Linux, Mac, and Java.
Post Reply
sheng
Posts: 3
Joined: Tue May 05, 2015 8:43 pm

Can AES Crypt support video streaming?

Post by sheng » Tue May 05, 2015 8:58 pm

Working on a project and try to encrypt video ts stream with AES :roll: . Can AESCrypt support not only file based but streams?

User avatar
paulej
Posts: 524
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: Can AES Crypt support video streaming?

Post by paulej » Wed May 06, 2015 3:46 am

Streaming is supported. It operates similarly to files, but doesn't require knowing the length of the plaintext stream in advance.

You can get a feel for how it works when you consider a Linux command like this:

cat file | aescrypt -e -p password -o file.aes -

Importantly, aescrypt stores data at the end of the output stream called an HMAC to ensure message integrity. Normally, aescrypt will fail to decrypt if that doesn't check out properly. However, in streaming cases, you'll likely have shown the video by the time the hmac is processed.

sheng
Posts: 3
Joined: Tue May 05, 2015 8:43 pm

Re: Can AES Crypt support video streaming?

Post by sheng » Thu May 07, 2015 3:05 pm

Thanks Paul.

Any idea where I can modify in your source code to support the following requests:

1: keep the same file name after encrypting. For example take move.ts as input file name and keep the move.ts as the encrypted file name instead of move.ts.aes.

2: keep the same file name after decrypting. Notice that you have dropped the last four characters (.aes) of the file name after completing the decryption.

By the way, is it possible to integrate you AESCrypt with a video player, such as VLC, JW player or FFMPEG? Though these are the player we are using for video streaming, they are actually dealing with video chunk files. The video players can sent the HTTP GETs to grap the chunk files of a video steam, put the chunks in the buffer and play them back as a stream. What we try to do here is to decrypt the chunk once they are in the buffer.

Any idea if this is possible?

Many thanks,

Sheng
sheng.liu@icloud.com

sheng
Posts: 3
Joined: Tue May 05, 2015 8:43 pm

Re: Can AES Crypt support video streaming?

Post by sheng » Thu May 07, 2015 6:44 pm

More test case have been run and it looks like the option "-o" works great to specify the name of the output file.

This is a really great AES crypt tool. Will looking for the right way to integrate it into our solution. Thanks a lot Paul.

User avatar
paulej
Posts: 524
Joined: Sun Aug 23, 2009 7:32 pm
Location: Research Triangle Park, NC, USA
Contact:

Re: Can AES Crypt support video streaming?

Post by paulej » Fri May 08, 2015 6:27 am

You can also use "-" with -o to send the stream to stdout. I do that all the time when encrypting data, in fact. That's actually how I use it most.

Post Reply