the_storage 0.0.4 copy "the_storage: ^0.0.4" to clipboard
the_storage: ^0.0.4 copied to clipboard

A fast and secure storage library for Flutter: store key and iv in FlutterSecureStorage and individual iv for every record in SQLite

TheStorage #

A fast and secure storage library for Flutter.

Features #

  • Fast and efficient storage operations
  • Secure data encryption
  • Easy-to-use API

Getting started #

To use this package, add the_storage as a dependency in your pubspec.yaml file.

Usage #

Import the package:

import 'package:the_storage/the_storage.dart';

Get an instance of the logger and initialize it:

TheStorage.i().init();

TheStorage is a singleton, so you can get the same instance anywhere in your app:

instance = TheStorage.i();

To write key-value pair to storage, use the set() method:

TheStorage.i().set('myKey', 'myValue');

To read value from storage, use the get() method:

final data = await TheStorage.i().get('myKey');

You can use domains to separate your data. To write key-value pair to storage with domain, use the domain argument:

TheStorage.i().set('myKey', 'myValue', domain: 'myDomain');
final data = await TheStorage.i().get('myKey', domain: 'myDomain');

Also you can use batch operations to read write multiple key-value pairs, clear a whole database or domain. Just check documentation for TheStorage class.

Testing #

This package includes several unit tests for its features. To run the tests, use the following command:

flutter test
1
likes
0
pub points
35%
popularity

Publisher

verified publisherthenes.xyz

A fast and secure storage library for Flutter: store key and iv in FlutterSecureStorage and individual iv for every record in SQLite

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

collection, encrypt, flutter, flutter_secure_storage, logging, path, sqflite

More

Packages that depend on the_storage