Enabling extended password encryption for ASE ODBC, OLE DB, and ADO.NET

This section describes how to enable extended password encryption for the ASE ODBC, OLE DB, and ADO.NET Drivers and Providers.


Using the EncryptPassword Connection string property

The EncryptPassword connection property specifies whether the password is transmitted in encrypted format. In ESD #8, this same property is used to enable asymmetric key encryption, if available. When password encryption is enabled, and the server supports asymmetric key encryption, this format is used instead of the symmetric key encryption. The new EncryptPassword values are:

NoteIf the server is configured to require clients to use an encrypted password, entering a plain text password will cause login to fail.


Using odbc.ini file on Linux

Following is an example of how you can specify the use of an encrypted password in the odbc.ini file:

[sampledsn]
Description=Sybase ODBC Data Source
UserID=abc
Password=xyz
Driver=Adaptive Server Enterprise
Server=sampleserver
Port=4100
Database=pubs2
UseCursor=1
EncryptPassword=1

Using the ODBC Data Source Administrator on Windows

To enable password encryption for a data source in the ODBC Data Source Administrator, check the Encrypt Password checkbox in the Connection tab page when setting up the data source.

NoteYou can only enable or disable password encryption (which corresponds to EncryptPassword value of 1 and 0, respectively) from the user interface. You can set EncryptPassword to 2 from a connection string.


Using the Sybase ASE Data Source Administrator for OLE DB Connections

To enable password encryption for an OLE DB data source in the Sybase ASE Data Source Administrator, check the Encrypt Password checkbox in the Connection tab page when setting up the data source.

NoteYou can only enable or disable password encryption (which corresponds to EncryptPassword value of 1 and 0, respectively) from the user interface. You can set EncryptPassword to 2 from a connection string.