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

Versioned Flutter key-value storage with authenticated encryption and change streams.

example/README.md

Boxx example #

import 'package:boxx/boxx.dart';

late final Boxx box;

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

  box = Boxx(
    name: 'example',
    mode: EncryptionMode.none,
  );
  await box.initialize();

  await box.put('user', {'name': 'Alice'});
  final user = await box.get<Map<String, dynamic>>('user');
  debugPrint('$user');
}

For encrypted storage, load at least 32 bytes of random key material from platform-backed secure storage and select EncryptionMode.aes or EncryptionMode.fernet. Never commit an application encryption key.

2
likes
150
points
200
downloads

Documentation

API reference

Publisher

verified publisherworkforceanalytics.co.za

Weekly Downloads

Versioned Flutter key-value storage with authenticated encryption and change streams.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

crypto, encrypt, flutter, idb_shim, path, path_provider, pointycastle, web

More

Packages that depend on boxx