Consultor Eletrônico



Kbase 21651: How to Encrypt html files as webspeed objects
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008
Status: Verified

GOAL:

How to encrypt .html file in WebSpeed?

GOAL:

How do I encrypt webspeed code?

FACT(s) (Environment):

WebSpeed 2.x
WebSpeed 3.x

FIX:

Following code applies to any WS object in .html format with or without embedded SpeedScript.

Any WS object in html format is converted to 4GL in order to be compiled. This is what Workshop does when we choose to compile and/or run an html file with or without embedded SpeedScript. This also applies when we want to encrypt an html.

The following sample code will convert order.html to order.w. Once the 4GL code is available it can be encrypted with xcode and after that compiled.

/* sample code to convert .html file to 4GL code */
DEF VAR vcfull AS CHARACTER.
DEF VAR gen-options AS CHARACTER.
DEF VAR p_newfile AS CHARACTER.

vcfull = SEARCH( "order.html" ).

IF vcfull <> ? THEN
RUN webutil/e4gl-gen.p
( INPUT vcfull,
INPUT-OUTPUT gen-options,
INPUT-OUTPUT p_newfile )
NO-ERROR.

MESSAGE gen-options SKIP p_newfile VIEW-AS ALERT-BOX .