The PWENCODE SAS procedure enables you to encode passwords that can be used in place of plain-text passwords in SAS programs that access relational database management systems (RDBMSs), SAS/SHARE servers, and SAS Integrated Object Model (IOM) servers (such as the SAS Metadata Server).
PROC PWENCODE IN=’password’
specifies the password to encode. password can have no more than 512 characters. password can contain letters, numerals, spaces, and special characters