MacroExpressions
03   /   Version 1.2

Snob

Reversible source-code name obfuscation

Which names can you afford to change?

A program may have thousands of internal names and a handful of public ones that another program depends on. Snob lets you define rules for recognizing names and deciding which to leave alone.

Snob (Simple Name Obfuscator) records substitutions in a name map. Use the same map across related files to keep the names consistent, or reverse the substitutions to recover the original identifiers. Keep the map private if you share the transformed source.

The C configuration is an example. Rules depend on the input language, so check the transformed program with your own build and tests. Snob 1.2 bundles the historical PCRE 4.5 library under separate terms.