Docs
Tenantry ProAPI reference

ConnectionStringEncryptionMode enum

Namespace: Tenantry.Pro.Strategies.DatabasePerTenant · Package: Tenantry.Pro · API reference

Determines how connection strings are encrypted before being stored in the cache.

public enum ConnectionStringEncryptionMode

Values

ValueDescription
None = 0No encryption. Connection strings are cached in plain text. This is the default — backward-compatible with all existing configurations.
AesKey = 1Encrypt using a consumer-provided 256-bit (32-byte) AES-256-GCM key. Set ConnectionStringEncryptionOptions.AesKey before calling UseDatabasePerTenant. The consumer is responsible for key management and rotation.
Custom = 2Use a consumer-provided IConnectionStringProtector implementation. Register the implementation in DI before calling UseDatabasePerTenant.

On this page