Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Display Modes
Old 30th September 2003, 10:19   #1  |  Link
ChristianHJW
Matroska Team
 
ChristianHJW's Avatar
 
Join Date: Nov 2002
Location: Bavaria - Germany
Posts: 1,341
Stream En/Decryption DirectShow filters, ready for alpha testing

Hi,

Jory 'jcsston' Stone, one of the matroska core devs, has a little surprise for you, he has created a set of DirectShow filters that will allow to encrypt any stream during the muxing process, and will insert automatically on playback asking for a password, he made it as a DirectShow 'finger training', to use Gabest's words ....

To make this clear right fom the start, these filters are not limited to matroska ! They were tested with matroska, but should work fine with OGM and AVI also !! This is just said out front, to avoid any stupid conspiracy theories of the matroska enemies here on this board, who had stated already that they see commercial interests behind the project.

We are currently collecting ideas of what to do with it, and here are our first considerations :

1. Protect your private movie collection from access by kids and/or your parents. This can be extremely useful for self-made 'movies' !

2. Fool your friends, by burning the latest freaky movies for them, and then they need a PW to view them

3. For release groups : With the help of Gabest, we could establish a system where every release group gets its own PW, and Gabest hardcodes them all into DVobSub. That way all SSA streams could be stored encrypted in the MKV or OGM file, and DVobSub has the PW for them, so people can view them, but not extract them , unless they are skilled programmers. If only Gabest was here, i guess this could be implemented in no time ....

Ideas and thoughts welcome

Here the binaries : http://corecodec.org/download.php/34/DSCrypt_v0.1.zip

Known bugs :

1. Doesnt work with Vorbis or AAC audio right now, only VCM video and ACM audio ( MP3, AC3 ) are supported

Last edited by ChristianHJW; 30th September 2003 at 19:23.
ChristianHJW is offline   Reply With Quote
Old 30th September 2003, 10:45   #2  |  Link
jcsston
Matroska Dev
 
jcsston's Avatar
 
Join Date: Sep 2002
Location: Texas, USA
Posts: 229
Re: Stream En/Decryption DirectShow filters, ready for alpha testing

Quote:
Originally posted by ChristianHJW
he made it as a DirectShow 'finger training', to use Gabest's words ....
A FLAC encoder filter took more typing
jcsston is offline   Reply With Quote
Old 30th September 2003, 11:54   #3  |  Link
robUx4
Matroska Team
 
robUx4's Avatar
 
Join Date: Dec 2001
Location: Paris, France
Posts: 421
That sounds like an excellent "open DRM" alternative. Where everyone can become its own "authority" (and we can build some larger ones).

Is the encryption based on PKI (Public Key Infrastructure) and the groups/authorities hold the private key...

Also in the option of having VSFilter (DVobSub?) store the decoding keys, it should be stored in a way only Gabest can have it back... Not possible with a 100% open source code.
robUx4 is offline   Reply With Quote
Old 30th September 2003, 12:25   #4  |  Link
Tuning
I'm back! :D
 
Tuning's Avatar
 
Join Date: Aug 2003
Location: The Matrix
Posts: 1,029
Great idea!Like in zips or RARs.
Can the PW changed after done encryption?
Tuning is offline   Reply With Quote
Old 30th September 2003, 16:47   #5  |  Link
jcsston
Matroska Dev
 
jcsston's Avatar
 
Join Date: Sep 2002
Location: Texas, USA
Posts: 229
Right now it's using AES encryption with a 16 character password/key. If your password is shorter the rest is filled will 0's and if it's too long it is cut off.

Tuning: No, the password cannot be changed after encryption, however you can decrypt and rencrypt at the sametime by chaining the filters together.
__________________
The Matroska Effect
jcsston is offline   Reply With Quote
Old 30th September 2003, 17:02   #6  |  Link
Tuning
I'm back! :D
 
Tuning's Avatar
 
Join Date: Aug 2003
Location: The Matrix
Posts: 1,029
I have d/l'd the DSCrypt,but i don't know how to use it.How the *.dll can be prepared to use ?


- Tuning
Tuning is offline   Reply With Quote
Old 30th September 2003, 17:07   #7  |  Link
RadicalEd
Registered User
 
Join Date: Dec 2001
Posts: 987
Usually dropping it your system directory and running a regsvr on it (start>run regsvr whatever.dll) would do it. You can then use graphedit to insert it into a filter chain.
RadicalEd is offline   Reply With Quote
Old 30th September 2003, 17:11   #8  |  Link
Tuning
I'm back! :D
 
Tuning's Avatar
 
Join Date: Aug 2003
Location: The Matrix
Posts: 1,029
Thanks RadicalEd,
I thought it was only applicable to *.ax files.
Tuning is offline   Reply With Quote
Old 30th September 2003, 19:18   #9  |  Link
Sirber
Registered User
 
Sirber's Avatar
 
Join Date: Oct 2002
Location: Canada
Posts: 8,732
Can it works with RV9 and RA8?
__________________
download RealAnime and Bencos
Sirber is offline   Reply With Quote
Old 30th September 2003, 19:26   #10  |  Link
jcsston
Matroska Dev
 
jcsston's Avatar
 
Join Date: Sep 2002
Location: Texas, USA
Posts: 229
Quote:
Originally posted by Sirber
Can it works with RV9 and RA8?
I have not tested that yet, but I should be able to make it work with any stream (with the right amount of hacking that is ).
__________________
The Matroska Effect
jcsston is offline   Reply With Quote
Old 1st October 2003, 20:17   #11  |  Link
haibane
Registered User
 
haibane's Avatar
 
Join Date: Jan 2003
Posts: 58
For the sub files, will the extraction require a different password.
Because sometimes after mux the sub file into matroska, we might need correct the error in the sub file.
haibane is offline   Reply With Quote
Old 2nd October 2003, 06:51   #12  |  Link
jcsston
Matroska Dev
 
jcsston's Avatar
 
Join Date: Sep 2002
Location: Texas, USA
Posts: 229
I have a new release download.
I now have support for encryption of ASCII, UTF-8, SSA, ASS, and USF subtitles. Also there are different modes of encryption now.

Sirber: Sorry but it may take a while for me to get RV/RA encryption working correctly. I've gotten it to encrypt but getting the decoders to connect to the decryped stream is the trouble.

I've also been unable to get Vorbis working, it will encrypt and even connect to the Vorbis decoder. But nothing happens (no sound or video).

Edit: Forgot the link.
__________________
The Matroska Effect
jcsston is offline   Reply With Quote
Old 2nd October 2003, 13:16   #13  |  Link
Sigmatador
Guest
 
Posts: n/a
and how to decode this file on linux ??? can it be done with loop-aes ?

Last edited by Sigmatador; 2nd October 2003 at 13:18.
  Reply With Quote
Old 3rd October 2003, 02:02   #14  |  Link
jcsston
Matroska Dev
 
jcsston's Avatar
 
Join Date: Sep 2002
Location: Texas, USA
Posts: 229
Quote:
For the sub files, will the extraction require a different password.
Because sometimes after mux the sub file into matroska, we might need correct the error in the sub file.
The idea of using encryption to protect subs is that the decryption would take place inside the subtitle renderer using a preset password the user doesn't ever know about, making it harder for someone to extract the subs.
So the answer to your question would be no, you would use the same password for encryption and decryption.

Quote:
and how to decode this file on linux ??? can it be done with loop-aes ?
To allow decryption on-the-fly during playback on Linux would require changing each player to support that.


To any interested developers,
I'm using the Crypto++ C++ lib to encrypt each frame with a reset key, which allows any frame decrypted without requiring previous frames.

The encryption methods you can use are
ASE (the orignal method),
ASE with MD5 password hashing,
BlowFish,
BlowFish with MD5 password hashing.

When using the MD5 password hashing, instead of using the password directly as a key I create a 16-byte MD5 hash from the password and use that.
__________________
The Matroska Effect
jcsston is offline   Reply With Quote
Old 4th October 2003, 14:51   #15  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Re: Stream En/Decryption DirectShow filters, ready for alpha testing

Quote:
Originally posted by ChristianHJW
3. For release groups : With the help of Gabest, we could establish a system where every release group gets its own PW, and Gabest hardcodes them all into DVobSub. That way all SSA streams could be stored encrypted in the MKV or OGM file, and DVobSub has the PW for them, so people can view them, but not extract them , unless they are skilled programmers. If only Gabest was here, i guess this could be implemented in no time ....
You're just asking for that to be cracked. I do not doubt Gabest's skills, but I don't think they'll be any better than that of those who created CSS, the numerous serial key protection systems, and other schemes which have already been cracked or which will be cracked in a short time. Subtitle protection is no use anyway, if you want me to demonstrate it to you I can rip you a hardsub fansub release to .SUB/.IDX and OCR it.
mf is offline   Reply With Quote
Old 12th October 2003, 17:55   #16  |  Link
cweb
Registered User
 
cweb's Avatar
 
Join Date: Oct 2002
Location: Cyberia
Posts: 443
Quote:
Originally posted by RadicalEd
Usually dropping it your system directory and running a regsvr on it (start>run regsvr whatever.dll) would do it. You can then use graphedit to insert it into a filter chain.
Is it possible to use software such as Vdubmod? I suppose the latter would need an update to recognise this filter..
cweb is offline   Reply With Quote
Old 21st October 2003, 07:58   #17  |  Link
phro
Registered User
 
Join Date: Aug 2003
Posts: 13
I'd have to agree with MF. No amount of obfuscation can protect a hardcoded decryption key forever. This would be one of those Crack Once Run Everywhere deals once somebody figured it out. It would be awesome though if you could get a working system in place that couldn't be cracked. Brutal irony, the netizens that bypassed commercial copy protection for their own use produce a home brew solution so rip groups can't snarf each others releases. Heheh.

If you decide to go ahead with that I would suggest switching to a PKI system so you can just hardcode the private key and give out the public key to anybody who wants to make a protected release. It would save a lot of arguing about who deserves a key and revisions of filters that don't have certain keys, etc.
phro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:50.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.