SQfLiteEncryptionHelper class
A helper utility for SQfLite related encryption operations
- helps loading the required dynamic libraries - even on cursed systems
- migrates unencrypted SQLite databases to SQLCipher
- applies the PRAGMA key to a database and ensure it is properly loading
Constructors
- SQfLiteEncryptionHelper({required DatabaseFactory factory, required String path, required String cipher})
-
const
Properties
- cipher → String
-
the (supposed) PRAGMA key of the database
final
- factory → DatabaseFactory
-
the factory to use for all SQfLite operations
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- path → String
-
the path of the database
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
applyPragmaKey(
Database database) → Future< void> -
safely applies the PRAGMA key to a
Database
-
ensureDatabaseFileEncrypted(
) → Future< void> - checks whether the database exists and is encrypted
-
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
Static Methods
-
ffiInit(
) → void - Loads the correct DynamicLibrary required for SQLCipher