LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-10-2007, 01:18 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
wm-drm on linux


this is more a question of how drm works...

but if you have a (legally obtained) kid/sid pair in a text file, would one be able to decrypt the .wmv by x-or-ing the kid and/ or sid against all the bytes in the .wmv file ?

basically i would like to program a player that will use a legally obtained key to decrypt a drm'ed wmv.

how would i find information on how windows media player does it ? (i.e.- does it circular shift bits, x-or bytes, add ff to each byte...)

let me know what you think.

thanks,
 
Old 07-11-2007, 06:31 AM   #2
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
"The ASF container provides the framework for digital rights management in Windows Media Audio and Windows Media Video. An analysis of an older scheme used in WMA reveals that it is using a combination of elliptic curve cryptography key exchange, DES block cipher, a custom block cipher, RC4 stream cipher and the SHA-1 hashing function."
http://en.wikipedia.org/wiki/Advanced_Systems_Format

Not going to be easy : D, best of luck. I'm not sure but hasn't that already been done?
 
Old 07-12-2007, 03:28 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
the only thing i know of that does this is windows media player in windows. that is partially how i got the key into a text file.

i know that xine, mplayer, ... dont have the ability to ask a webserver for a certificate but if it already had one i figured it would be trivial to program how to use it when spitting out bytes from a stream.

i guess i was thinking too ambitiousely.

thanks,
 
Old 07-12-2007, 10:09 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Nevermind. DRM is a dead dodo. It just hasn't fallen over yet. But it will soon.
 
Old 07-12-2007, 10:24 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Quote:
basically i would like to program a player that will use a legally obtained key to decrypt a drm'ed wmv.
Even you purchased the key, even talking about how to use it (as if I knew) might be illegal. The MS way of doing things is for you to use their magic sdk. Without studing their patent, or being an encryption expert, you probably will have a hard time.
 
Old 07-13-2007, 08:52 AM   #6
kummiliim
Member
 
Registered: Mar 2007
Location: Tallinn, Estonia
Distribution: Slackware 12.0
Posts: 276

Rep: Reputation: 30
Things like this make me glad I still live outside DMCA.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux: GPLv3, DRM, and Exceptions LXer Syndicated Linux News 0 10-20-2006 03:21 PM
DRM and linux / ASUS P5LD2 mobo ffejveg Linux - Hardware 0 02-19-2006 02:19 PM
DRM Support in Linux? How? Elomis Linux - Software 1 03-24-2005 12:54 PM
DRM and Linux FredrikN Linux - General 1 04-25-2003 07:36 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration