getGCMSembastCodec function
Create a codec to use when opening an encrypted sembast database
The usage is then
// Initialize the encryption codec with a user password
var codec = getXXTeaSembastCodec(password: '[your_user_password]');
// Open the database with the codec
Database db = await factory.openDatabase(dbPath, codec: codec);
// ...your database is ready to use as encrypted
Implementation
SembastCodec getGCMSembastCodec({required String password}) =>
SembastCodec(signature: 'aes-gcm', codec: _GCMCodec(password));