boxx 0.1.6 copy "boxx: ^0.1.6" to clipboard
boxx: ^0.1.6 copied to clipboard

Boxx is your ultimate key-value storage plugin with built-in encryption

example/README.md

Example of usage boxx #

Without Encryption

late Boxx box;

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  initBox();
}



initBox() {
  box = Boxx(mode: EncryptionMode.none);
}

With Encryption

late Boxx box;

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await initBox();
}



initBox() {
  box = Boxx(mode: EncryptionMode.aes,encryptionKey: 'xxxxxxxx');
}

Usage #

Delete

    box.delete('UserData');

Get

 final contents = await box.get('UserData');

Put

box.put('UserData', response.body);

encrption/decryption

  String t1 = box.encrypt('Hello World');
  debugPrint(t1);
  String t2 = box.decrypt(t1);
  debugPrint(t2);
2
likes
160
points
45
downloads

Publisher

verified publisherworkforceanalytics.co.za

Weekly Downloads

Boxx is your ultimate key-value storage plugin with built-in encryption

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

encrypt, flutter, idb_shim, path_provider, web

More

Packages that depend on boxx