The script encoder encodes only the script code, and the other contents of the file are not moved and are displayed in plain text. To use the Scripting Encoder, develop and debug the text in the usual way, and then use the utility to encode the final script. The script encoder uses tags in the source code to identify where the encoding begins.
For Visual basic®scripting Edition (VBScript), the following example shows how to use a coded tag to display the copyright information for normal text:
When the script encoder is invoked, the contents of the script block remain unchanged before the start tag, while the other content is encoded. Therefore, if the start tag is omitted, all content within the script encoding block is encoded, but if the start tag is at the end of the script encoding block, no content is encoded.
After the code has occurred. You should know that the language indicator in the <SCRIPT> tag has changed. For VBScript, the new indicator is as follows:
<script language= "Vbscript.encode" >
For JScript (or JavaScript), the new indicator is as follows:
<script language= "Jscript.encode" >
The script encoder is called in the MS-DOS command line or the Run dialog box shown below:
Srcenc [Switches] Inputfile outputfile
The syntax for the utility is explained in the script encoder syntax.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.