You can use Script Encoder. But this method can also be easily decrypted.
Script Encoder is a Script encryption tool for Microsoft. It is a simple command line tool that encrypts the HTML file. The text sections after encryption remain unchanged, just encrypting the JavaScript and VBScript parts. The encrypted script has no loss on the function, only its code becomes ciphertext, and the source file is used to view just some garbled. The program is small only 64K, which is very simple, executed in the DOS command, or run with parameters under Windows. In addition to encrypting HTML files, the program can also encrypt ASA, ASP, CDX, JS, SCT, VBS files. The encrypted file size basically has no change. Encrypted JavaScript Central Original