Coder Social home page Coder Social logo

hdcp-genkey's Introduction

HDCP Key Generation Example

This script implements a simple version of the HDCP key generation algorithm in Python using the leaked HDCP master key (which is located in master-key.txt).

Usage: generate_key.py [options]

Options:
  -h, --help            show this help message and exit
  -m FILE, --master=FILE
                        load master key from FILE
  -k, --sink            generate a sink key rather than a source key
  --ksv=KSV             use a specific KSV expressed in hexadecimal
  -j, --json            output key and KSV as JSON
  -t, --test            generate source and sink keys and test they work

Examples:

# Generate a sink key with KSV 0x54f0af39a8 and output the result in JSON
./generate_key.py -k --ksv 54f0af39a8 -j

# Generate a source key with a random KSV and output the result in a 
# human-readable form
./generate_key.py

# Run a self-test to make sure the source a sink key generation is consistent
./generate_key.py -t

hdcp-genkey's People

Contributors

cyrozap avatar rjw57 avatar

Watchers

 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.