boxx 0.1.6
boxx: ^0.1.6 copied to clipboard
Boxx is your ultimate key-value storage plugin with built-in encryption
Store, retrieve, and protect your data effortlessly with AES or Fernet encryption. Whether you need blazing-fast key-value storage or encrption Boxx has you covered.
Features #
Boxx is a lightweight storage solution with optional encryption built in. Its simple, powerful, & intuitive API get's you up and running in no time.
✅ Simple – Easy-to-use key-value interface
✅ Secure – Choose between AES-256 or Fernet encryption
✅ Versatile – Perfect for configs, secrets, or sensitive data
Getting started #
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();
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);