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
import random | |
class Key: | |
def __init__(self, key=''): | |
if key == '': | |
self.key= self.generate() | |
else: | |
self.key = key.lower() |
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
const purpose = "Purpose: deobfuscate odttf file (extracted from M$ XPS file)" | |
const usage = "Usage: node deobfuscate-odttf-in-xps.js <guid-obfuscated-font-file.odttf> [<output-file.ttf>]" | |
const obfuscatedStartOffset = 0 //start of obfuscated bytes in font file | |
const obfuscatedEndOffset = 32 //start of obfuscated bytes in font file | |
const guidSize = 32 // length of GUID string (only hex characters included) | |
const fs = require('fs') | |
const path = require('path') |