PWENCODE Procedure

Example 4: Specifying Method= SAS003 to Encode a Password

Features:

METHOD= argument

Details

This example shows a simple case of encoding a password using the sas003 encoding method and writing the encoded password to the SAS log.

Program

proc pwencode in='my password' method=sas003;
run;

Program Description

Encode the password using SAS003.
proc pwencode in='my password' method=sas003;
run;

Log

Note that each character of the password is replaced by an X in the SAS log. SAS003 encoding uses AES encryption plus a 16-bit salt. Because SAS003 uses random salting, each time you run the following code, a different password is generated.
8   proc pwencode in=XXXXXXXXXXXXX method=sas003;
29   run;

{SAS003}08D7B93810D390916F615117D71B2639B4BE

NOTE: PROCEDURE PWENCODE used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds