Amplification: I want find exact thing I need: XOR-based Javascript
encryptor.
(html page with encoded javascript will have a "decoder stub" prefixed
before
the code that is actually executed.) Simple and effective.
In my amateur opinion, you are unlikely to find XOR based encryption,
because XOR could produce characters not recognised by the web page
encoding (e.g. control characters in the 0x80 to 0x9F range).
Also if the "decoder stub" is prefixed, in what sense is it encrypted?
It would only stop the most casual user. Any person who was interested
in seeing your source, would also have the capability to easily extract
the code using the decoder stub provided.
For simple method of compacting your JS files (with the side effect of
mild obfuscation), including a "decompacting stub", see:-
<URL:
http://dean.edwards.name/packer/>
Regards
Julian Turner