Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Distribute Media Securely with Microsoft's Digital Rights Management  : Page 2

Digital Rights Management (DRM) is a solution to online media piracy that requires a user to obtain server-distributed licenses to unlock encrypted content. Learn how to employ this security model using Microsoft's DRM software for Windows Media.


advertisement
Creating an Online Music Store
To get the DRM SDK you must send Microsoft a digitally signed DLL to prove the validity of your company. Microsoft claims that a DRM license request will take only 5-7 business days. You can apply online at msdn.microsoft.com. After you receive your evaluation or redistribution license and install the SDK, you must enroll to get a DRM certificate from licenseserver.windowsmedia.com. Don't worry; enrollment is only a five-minute step. You can also get the update to your SDK's individualization details at this site. Individualization refers to the most current version of the DRM encryption 'black-box' being used by Media Player. See Figure 2 for more information on how clients can update their individualization settings.

Figure 2: Client Individualization

After initializing your server, you must prepare your content. The easiest way to do this is through the Windows Media player. Disable 'Personal Rights Management' and preferably set your encoding bit rate to 128Kb/sec. (see Figure 3).



Figure 3: Encoding Options in Windows Media Player 7

Included in the sample code includes a Visual Basic 6 client to assist in packaging your content. Using the sample application, you can specify the files you wish to package individually. The client application secures the media by calling the Secure class of the DRMStore DLL. The DRMStore DLL is the key business logic component included in the sample code. It handles packaging and licensing. The following code demonstrates how to obtain and specify the ContentID, a unique identifier for the package:

ContentID = oKey.GenerateKeyID oHeader.ContentID = ContentID

The preceding sample code generates a GUID for the ContentID value, but in production code, you should use meaningful identifier. For example, you might use an ID from a store's database. To generate a packaged version of the media, you use the WMRMProtect object:

' A path to the source file oProtect.InputFile = Filename ' Encrypt File to the absolute filename & location Call oProtect.ProtectFile(sOutputFile)





Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date