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 ConnectionStringEncryptionModeValues
| Value | Description |
|---|---|
None = 0 | No encryption. Connection strings are cached in plain text. This is the default — backward-compatible with all existing configurations. |
AesKey = 1 | Encrypt 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 = 2 | Use a consumer-provided IConnectionStringProtector implementation. Register the implementation in DI before calling UseDatabasePerTenant. |