How bnlucas/obfuskey works
Obfuskey is a Python library for reversible integer-to-key obfuscation; Obfusbit adds schema-defined bit packing, optional obfuscation, and byte conversion. The graph shows the documented workflows and source-supported calls. The README describes predefined/custom alphabets and multiplier configuration; details of unsampled runtime code are not inferred beyond those documented capabilities.
Main entry points: _obfusbit.py Pack and unpack · _obfuskey.py Key generation · __init__.py Public API · _math.py Prime and modular math
Components 10
Schema Packing
- Schema validation
obfuskey/_obfusbit_schema.py - Pack and unpack
obfuskey/_obfusbit.py - Byte conversion
obfuskey/_obfusbit.py
Key Obfuscation
- Key generation
obfuskey/_obfuskey.py - Alphabet constants
obfuskey/alphabets.py
Encoding and Math
- Base conversion and primes
obfuskey/utils.py - Prime and modular math
obfuskey/_math.py
Other components
- Library consumer
- Public API
obfuskey/__init__.py - Optional gmpy2
Connections 13
- Library consumer → Public API: imports
- Library consumer → Pack and unpack: packs or unpacks
- Library consumer → Key generation: encodes or decodes
- Public API → Pack and unpack: exports
- Public API → Schema validation: exports
- Public API → Key generation: exports
- Pack and unpack → Schema validation: validates schema and values
- Pack and unpack → Key generation: obfuscates or reverses
- Pack and unpack → Byte conversion: converts packed integers
- Key generation → Base conversion and primes: encodes, decodes, generates prime
- Base conversion and primes → Prime and modular math: finds next prime
- Key generation → Prime and modular math: computes modular inverse
- Prime and modular math → Optional gmpy2: uses for large primes