Password encoding
- Last Updated: January 26, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You can protect password information during authentication using ABL password encoding. To programmatically generate an encoded password:
- Use the ENCRYPT-AUDIT-MAC-KEY( ) method of the
AUDIT-POLICYsystem handle to generate an encoded version of a clear-text password using an Encoding prefix. - Assign the encoded password string to a
CHARACTERvariable.
For example:
|
Note: The second parameter of
ENCRYPT-AUDIT-MAC-KEY is
an encoding prefix. The example uses "ae2h6", but other options are
available. See Encoding prefix in Learn about Security and
Auditing for more information.The encoded password, thus generated, can be substituted for a clear-text value in the following contexts:
- As an option in a CONNECT db-name -U user-id -P encpwd statement
- As a password parameter for the client-principal INITIALIZE() method
- As a value for the client-principal PRIMARY-PASSPHRASE attribute
- As a password parameter for the SETUSERID function
- As a password parameter for the
-WSDLKeyPwdoption of the CONNECT() method - As a password parameter for the
-WSDLKeyPwdoption of the bprowsdldoc utility (WSDL Analyzer)
Note: You can also generate
an encoded password using the genpassword utility. This method is useful when you need an
encoded password as a startup parameter value on the command line or in a .pf file. For more information, see Password (-P) in the Startup Command and
Parameter Reference.