Encodes a password.
Examples: | Encoding a Password Using an Encoded Password in a SAS Program |
specifies the password to encode. The password can contain up to a maximum of 512 characters, which include alphanumeric characters, spaces, and special characters.
See | Encoding a Password |
Using an Encoded Password in a SAS Program | |
Saving an Encoded Password to the Paste Buffer |
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.
_PWENCODEis set to the value that is written to the OUT= fileref or to the value that is displayed in the SAS log.
See | Using an Encoded Password in a SAS Program |
specifies the encoding method. Here are the supported values for encoding-method:
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.
|
SASProprietary, which
is included in SAS software.
|
sas003 |
Uses a 256-bit key plus
16-bit salt to encode passwords.
|
AES (Advanced Encryption
Standard), which is supported in SAS/SECURE.
|
sas004 |
Uses a 256-bit key plus
64-bit salt value to encode passwords.
|
AES (Advanced Encryption
Standard), which is supported in SAS/SECURE.
|
sas003
. For all other cases,
encoding method sas002
is the default
method used. SAS002 is also the default method used if you specify
an invalid method.