SqlNetEncryptionTypesClient

This property specifies encryption algorithms that the client can use.

Declaration

// C#
public string SqlNetEncryptionTypesClient {get; set;}

Return Value

System.String

Remarks

Default value is null. Null setting means other configuration methods determine the client's encryption algorithms.

Possible string values:

  • AES128

  • AES192

  • AES256

  • 3DES112

  • 3DES168

All other string values are incorrect and should not be used.

Using 3DES 112-bit (3DES112) or 3DES 168-bit (3DES168) requires ODP.NET SQLNET.Allow_Weak_Crypto/SqlNetAllowWeakCrypto to be set to true.

Example

// Allow ODP.NET app to use AES128 and AES192 encryption algorithms
conn.SqlNetEncryptionTypesClient = "(AES128, AES192)";