Giter Site home page Giter Site logo

widevine_key_ladder's Introduction

Widevine Key Ladder Script

Dependencies:

  • Python3
  • python3-pycryptodome

Python script mimicking the Widevine key ladder starting from the Device Key up to Content keys. This script can either start from the Device Key or the Device RSA Key.

usage: widevine_key_ladder.py [-h] [--device_key DEVICE_KEY] [--encryption_context ENCRYPTION_CONTEXT]
                              [--mac_context MAC_CONTEXT] [--enc_device_rsa_key ENC_DEVICE_RSA_KEY]
                              [--device_rsa_key_iv DEVICE_RSA_KEY_IV] [--cert CERT]
                              [--enc_session_key ENC_SESSION_KEY]
                              [--encryption_context_session ENCRYPTION_CONTEXT_SESSION]
                              [--mac_context_session MAC_CONTEXT_SESSION]
                              [--loadkeys_buffer LOADKEYS_BUFFER] [-n NUM_CONTENT_KEYS] [--server_key]

optional arguments:
  -h, --help            show this help message and exit
  --device_key DEVICE_KEY
                        clear device key in hex from the Keybox.
  --encryption_context ENCRYPTION_CONTEXT
                        file with the encryption context from GenerateDerivedKeys.
  --mac_context MAC_CONTEXT
                        file with the mac context from GenerateDerivedKeys.
  --enc_device_rsa_key ENC_DEVICE_RSA_KEY
                        file with the encrypted Device RSA Key from RewrapDeviceRSAKey.
  --device_rsa_key_iv DEVICE_RSA_KEY_IV
                        IV in hex for the encrypted Device RSA Key from RewrapDeviceRSAKey.
  --cert CERT           file with the clear certificate.
  --enc_session_key ENC_SESSION_KEY
                        file with the encrypted session key.
  --encryption_context_session ENCRYPTION_CONTEXT_SESSION
                        file with the encryption context from DeriveKeysFromSessionKey.
  --mac_context_session MAC_CONTEXT_SESSION
                        file with the mac context from DeriveKeysFromSessionKey
  --loadkeys_buffer LOADKEYS_BUFFER
                        file with the Loadkeys buffer containing the encrypted content keys.
  -n NUM_CONTENT_KEYS, --num_content_keys NUM_CONTENT_KEYS
                        number of content key in LoadKeys.
  --server_key          set if there is a server key in LoadKeys.

widevine_key_ladder's People

Contributors

avalonswanderer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.