I know nothing about JavaScript, but in other programming languages,
there's something called "escaping", with which you can obfuscate source
code[1].

That is, I could say "yes" (GNU Coreutils command that repeatedly prints
a message as fast as possible until you press Ctrl + C, until you send
SIGINT or SIGTERM to it) by different means, see (the text between
parenthesis is just my commentary):

\y\e\s (You can still read it, and then study it)

$'\171\145\163' (Now it'll be more difficult to read. Although the yes
command is still there. This source code can't be accepted as free
software anymore because it prevents others from learning from it.
Please note the use of dollar sign at the very beginning, and the use of
apostrophe immediately after the dollar sign and, followed by the
escaped string, followed by other apostrophe. This is how GNU Bash
understands complex escapes.)

There are also complex examples where the software developer has made
special print-out functions to put obfuscated code to a temporary file
and then execute that file, which although obfuscated when reading, can
be understood by interpreters or compilers of that programming language.

I'm not sure, but perhaps minified code could be also considered
obfuscation, but as I said just now: I'm not sure, so please don't take
this paragraph as sure affirmative.


REFERENCES

[1] https://en.wikipedia.org/wiki/Obfuscation_%28software%29

Reply via email to