Skip to content

Instantly share code, notes, and snippets.

@Rupamjb
Rupamjb / f1_builder.py
Created May 26, 2026 14:12
Pure Python FastInfoset (ITU-T X.891) encoder for binary XML — security research, fuzzing, and testing
#!/usr/bin/env python3
"""
FastInfoset Builder — Pure Python encoder for ITU-T X.891 | ISO/IEC 24824-1.
FastInfoset is a binary XML encoding format standardized as ITU-T X.891.
It compresses XML by using indexed vocabularies for element/attribute names,
namespace URIs, and character content. This encoder generates byte-for-byte
compatible FastInfoset streams suitable for testing, fuzzing, and security
research against servers that accept Content-Type: application/fastinfoset.