Previous Page | Next Page

The PWENCODE Procedure

PROC PWENCODE Statement


PROC PWENCODE IN='password' <OUT=fileref> <METHOD=encoding-method>;


Required Argument

IN='password'

specifies the password to encode. The password can contain up to a maximum of 512 characters, which include alphanumeric characters, spaces, and special characters. If the password contains embedded single or double quotation marks, use the standard SAS rules for quoting character constants (see "SAS Constants in Expressions" in SAS Language Reference: Concepts for details).

Featured in: Encoding a Password, Using an Encoded Password in a SAS Program, and Saving an Encoded Password to the Paste Buffer

Options

OUT=fileref

specifies a fileref to which the output string is to be written. If the OUT= option is not specified, the output string is written to the SAS log.

Featured in: Using an Encoded Password in a SAS Program
METHOD=encoding-method

specifies the encoding method. Here are the supported values for encoding-method:

Supported Encoding Methods
Encoding Method Description Supported Data Encryption Algorithm
sas001
Uses base64 to encode passwords. None
sas002, which can also be specified as sasenc Uses a 32-bit key to encode passwords. This is the default. SASProprietary, which is included in SAS software.
sas003
Uses a 256-bit key to encode passwords. AES (Advanced Encryption Standard), which is supported in SAS/SECURE*.

* SAS/SECURE is an add-on product that requires a separate license. For details about SAS/SECURE, the SASProprietary algorithm, and the AES algorithm, see Encryption in SAS.

If the METHOD= option is omitted, the default encoding method, sas002, is used automatically.

Previous Page | Next Page | Top of Page