DJB Netstrings: A Simple, Secure Protocol for Reliable Network Communication
Netstrings (1997)
I introduce netstrings, a self-delimiting encoding method that makes generating and parsing strings incredibly easy. Unlike traditional protocols, netstrings declare their size upfront, allowing applications to verify memory availability before reading data. This approach eliminates the risk of buffer overflows often seen with CRLF encoding, offering a robust foundation for secure network protocols.
"The famous Finger security hole may be blamed on Finger's use of the CRLF encoding."