I need to obfuscate Unicode text lines to slow down those who can extract them. Ideally, this will be done using the Python built-in module or a small additional library; the length of the string will be the same or less than the original; and "unobfuscation" will be as fast as possible.
I tried various character substitutions and XOR routines, but they are slow. Base64 and hexadecimal encoding significantly increase the size. To date, the most efficient method I have found compresses zlib at the lowest setting (1). Is there a better way?
source share