To enable password encryption, you must set the EncryptPassword connection property, which specifies whether the password is transmitted in encrypted format. When password encryption is enabled, the password is sent over the wire only after a login is negotiated; the password is first encrypted and then sent. The EncryptPassword values are:
0 – use plain text password. This is the default value.
1 – use encrypted password. If encryption is not supported, return an error message.
2 – use encrypted password. If encryption is not supported, use plain text password.
To use the password encryption feature, you must have a server that supports password encryption, such as Adaptive Server 15.0.2. Asymmetrical encryption requires additional processing time and may cause a slight delay in login time.