#paper on the “consistent overhead byte stuffing” #encoding algorithm ("COBS"), which encodes your packets to avoid an illegal byte value adding no more than 0.4% space overhead in the worst case. If the illegal value is NUL, it works by transforming a packet that is a sequence of NUL-terminated strings into a sequence of length-byte-preceded strings, with an excess-1 encoding for the length; strings of over 254 bytes are encoded by a concatenation of 255-byte chunks counted with 0xFF, followed by a regular counted chunk. #algorithms
interesting — anonymous broadcast messaging with a few million users per server