Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encrypting or Hiding HTA Source Code

Status
Not open for further replies.

edushkushot

Programmer
Jan 11, 2004
15
US
If anyone out there knows how to secure an HTA Application with VBScript in it (such as encrypting or hiding it), I could really use some tips. I don't want the code to be edited once the application is deployed, due to the nature of HTAs.
Thanks in advance.


G :)
 
Well you can see faq329-3578 for a link to a Microsoft page that itself has both the scripting documentation (see the WSH doc for the most comprehensive info) and the Script Encoder. The Script Encoder documentation is part of the downloadable CHM file at the link in that FAQ.

Keep in mind that this form of script obfuscation is not highly secure. Some deviants have posted tools for reversing it at various places on the web.

It is the only common one available though.

I'm using other techniques myself. But since they are messy, have some disadvantages, and offer only a marginal advantage in resistance to breakage anyway - there is no point in disclosing them here.

Even encapsulating critical or sensitive code as a compiled DLL has its drawbacks. For one, a big plus with HTAs is the lack of a need for the full installation and registration of components. For another, depending on how you wrote/compiled these DLLs/OCXs you might need to supply bulky runtime DLLs along with them.

Script Encoder may be perfect for you if you just want to discourage casual tinkering.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top