PROC PWENCODE IN='password' <OUT=fileref>
<METHOD=encoding-method>;
|
- 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).
- 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.
- 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.
![](../../../../common/63294/HTML/default/images/spacer.gif) |
![](../../../../common/63294/HTML/default/images/spacer.gif) |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.