I wanted to if it is possible to read a KeyID from an encrypted file using WMDRM 10?
Of course it is a clear text somehow, but is it possible? how?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One easy answer is that you can binary-parse the file and look for the
<WMRMHEADER>tag and the<KID>tag within it (both Unicode-encoded). The key ID is within the<KID>tag.The correct (but much harder) way is to use Windows Media Format 11 SDK and the
IWMDRMReader::GetDRMProperty()method with theg_wszWMDRM_DRMHeader_KeyIDconstant. However, you are gonna need WMDRM “stub libs” from Microsoft in order to do that (i.e. be a DRM licensee).