DatabaseEncryptionConfig class

Configuration for database encryption.

The chat package accepts an encryption key but does NOT manage it. Key generation, storage, and lifecycle management should be handled at the app level.

Constructors

DatabaseEncryptionConfig({required String encryptionKey, int cipherPageSize = 4096, int kdfIterations = 64000})
Creates database encryption configuration.
const

Properties

cipherPageSize int
SQLCipher page size (default: 4096).
final
encryptionKey String
The encryption key (hex-encoded, 64 characters for 256-bit key).
final
hashCode int
The hash code for this object.
no setterinherited
kdfIterations int
KDF iterations (default: 64000).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isValid() bool
Validates the encryption key format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited