Example to Encode SAS Passwords

4

Within SAS Run the following code (the purple text is the password you would like to encode):

proc pwencode in='myn3wpwd4u'; run;

After submitting this code (F3), the resulting encoded password in available only in the log file.

The results from this example are below, the highlighted line is the encrypted password which can be used in all backend interactions with SAS.

1 proc pwencode in='myn3wpwd4u'; run;

{sas001}bXluM3dwd2Q0dQ==

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

Share

About Author

Angela Hall

Senior Technical Architect

Angela offers tips on using the SAS Business Intelligence solutions. She manages a team of SAS Fraud Framework implementers within the SAS Solutions On-Demand organization. Angela also has co-written two books, 'Building BI using SAS, Content Development Examples' & 'The 50 Keys to Learning SAS Stored Processes'.

4 Comments

  1. However in Version 9.1 your password can't be a multiple of three (3). If it is it doesn't work :)Found that out the Hard way. See Response from SAS :---About the encrypted password, you has run into a bug. This particular bug is only encountered when a password has a length that is a multiple of three. Any password length that is a muliple of three will fail. To circumvent the problem, add or remove a character in the password.For information, a SAS Note will be created and SAS 9.2 does not have this problem.---

Back to Top