apfsds-obfuscation
Traffic obfuscation layer for APFSDS.
Features
- XorMask: Rolling XOR mask with session-derived key
- Padding: Size obfuscation with random or fixed-block padding
- Compression: Optional LZ4 compression for payloads
Usage
use ;
// XOR masking
let mask = from_session_key;
let masked = mask.apply;
let original = mask.apply; // XOR is symmetric
// Padding
let padder = new;
let padded = padder.pad;
let unpadded = padder.unpad?;
Obfuscation Pipeline
Plaintext → Compress → Pad → XOR Mask → Ciphertext
License
MIT