18 Commits

Author SHA1 Message Date
Rich Wareham e8d342da07 README: fix syntax highlighting of examples 2013-09-21 13:43:06 +01:00
Rich Wareham cf4d81aa35 update README to be in markdown format 2013-09-21 13:42:15 +01:00
cyrozap 003e65e2e1 Updated GAE code for Python 2.7 and webapp2, switched to HTTPS links in the index page, switched to the standard Python JSON library, enabled threading. 2013-09-21 00:37:15 -04:00
Rich Wareham 2274792ed0 and replace reduce() with sum 2010-09-21 14:25:10 +01:00
Rich Wareham cdaa1db667 convert map/filter use to generator expressions
Apparently using generator expressions and list comprehensions is more
'pythonic'. Who am I to disagree? :)
2010-09-21 14:18:47 +01:00
Rich Wareham 0f461710d8 add a simple Google appengine implementation
Add a really simple Google app engine implementation.
2010-09-17 16:18:51 +01:00
Rich Wareham 95dd783753 fix human readable output again
*tch* silly me. The human readable output was outputting only the first 4
56-bit values from each group of 5 in the key.
2010-09-17 13:35:31 +01:00
Rich Wareham 663a67b5aa make the self-test output a bit prettier
Add a newline to the self-test output to aid reading.
2010-09-17 13:34:10 +01:00
Rich Wareham 528b36ef96 fix human readable output
The key was output incorrectly by the himan readable output routine.
2010-09-17 13:33:08 +01:00
Rich Wareham 27f805e237 add a simple self-test
Added a simple self test mode where a source and sink key are generated and the
source/sink shared-secret key is generated using the source keys and the sink
keys. The test makes sure those keys are identical.
2010-09-17 13:25:00 +01:00
Rich Wareham 83cf4e347e add a simple README 2010-09-17 12:47:49 +01:00
Rich Wareham fccbdf1e7c output hex strings in JSON rather than numbers
Apparently the precise precision JavaScript has for storing integers may not
quite be enough. We push this problem downstream by saving the hexadecimal
representation of the key rather than the number itself.
2010-09-17 12:41:26 +01:00
Rich Wareham 0da34485b6 add JSON output option 2010-09-17 12:37:59 +01:00
Rich Wareham 8d638dee51 control generation via command line options
Add options to generate source/sink keys, load the master key from a different
file or to use a specified KSV.
2010-09-17 12:29:57 +01:00
Rich Wareham f9c6636f8b move the main body into a main() function 2010-09-17 12:05:30 +01:00
Rich Wareham 9ae9ee1cc1 refactoring to allow sink key generation
Some refactoring work to split KSV generation from key generation. This, along
with the addition of a transpose function, allows us to generate sink keys too.
2010-09-17 12:03:41 +01:00
Rich Wareham 13fc32feec add BSD license boilerplate
The irony of asserting copyright on this code is not lost on me. However, it's
become a trigger response whenever I release anything to the world now :).
2010-09-17 11:46:06 +01:00
Rich Wareham 7e55241233 initial import
Initial import of HDCP key generating code. This code only generates a source
key for the moment.
2010-09-17 11:44:34 +01:00