On UNIX/Linux
- Last Updated: May 12, 2026
- 1 minute read
- OpenAccess SDK
- Version 9.0
- Documentation
The following procedure assumes that you have created an ODBC data source called oa90_myDSN.
-
From a command prompt, change to the driver installation directory.
-
Enter
oaencpwd. -
Enter
Data Source Name: oa90_mydsn -
Choose which password to encrypt and store.
[1]=Password (PWD)[2]=DBPassword (DBPWD)[3]=HPassword (HPWD)[4]=NewPassword (NPWD)Choice: [1] ==> 1 -
Enter
Password (PWD)(keystrokes are not shown):DSN=oa90_myDSN : Password (PWD) stored encrypted.Would you like to store a LogonID (UID) as well? [Y] [N]Choice: ==>Y -
Enter ``LogonID (UID):` my_logonid
DSN=oa90_myDSN : LogonID (UID) stored.
Note
To re-encrypt a password after upgrading to OpenAccess SDK 9.0, follow these steps:
- Run the
EncryptPasswordutility and choose[2] Re-encrypt legacy password. - Enter DSN name.
- Select the appropriate password type: PWD, DBPWD, HPWD, NPWD, or TSPWD.
- The tool automatically performs the following actions:
- Reads the old encrypted password from the registry or INI file.
- Decrypts the password using the legacy algorithm.
- Re-encrypts the password using the new algorithm.
- Writes the updated password back to the registry or INI file.