This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import os | |
import sys | |
from collections import namedtuple | |
CacheFile = namedtuple('CacheFile', ['path', 'key']) | |
def read_cache_file(path): | |
with open(path, 'r') as f: | |
f.seek(0x28) # skip header | |
key_magic = f.read(6) |