Consultor Eletrônico



Kbase P164339: How to encrypt using sslc executable.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   4/22/2010
Status: Unverified

GOAL:

How to encode using sslc executable

GOAL:

Sample 4GL program using the sslc executable

FACT(s) (Environment):

OpenEdge 10.2x
All Supported Operating Systems

FIX:

From OpenEdge 10.2A on the sslc utility is included and it is located at $DLC/bin.
It is possible to use $DLC/bin/sslc to encode by calling it from the OS-COMMAND.
Example:


DEFINE VAR c AS CHARACTER INITIAL "" FORMAT "X(30)".
OS-COMMAND SILENT VALUE ('echo "encode me" | sslc enc -base64 > encoded.txt').

INPUT FROM encoded.txt.
DO WHILE c = "":
IMPORT UNFORMATTED c.
END.
DISPLAY C .