I used a combination of: https://code.google.com/p/cryptography-by-dan-boneh/source/browse/src/Q1ManyTimePad.py and https://github.com/ApertureLabsLtd/cribtastic In hindsight though, xortool from hellman might have been the right approach, but would have required work to get the key padding lined up.