flutter_secure_file_storage 0.0.1 copy "flutter_secure_file_storage: ^0.0.1" to clipboard
flutter_secure_file_storage: ^0.0.1 copied to clipboard

outdated

An implementation for flutter secure file storage. For example keychain has a soft limit of 4kb. Using the file system instead we can store much larger content

Flutter secure file storage #

An implementation for flutter secure file storage. For example keychain has a soft limit of 4kb. Using the file system instead we can store much larger content.

AES/GCM/NoPadding encryption is used to encrypt the data. The keys are generated using Random.secure, encrypted by the pointycastle package and stored using the flutter_secure_storage package

Usage #

It's implemented to use the same structure as FlutterSecureStorage and therefore you can switch easily between them.

import 'package:flutter_secure_file_storage/flutter_secure_file_storage.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';

// Create storage
final storage = FlutterSecureFileStorage(FlutterSecureStorage());

// Read value
String value = await storage.read(key: key);

// Read all values
Map<String, String> allValues = await storage.readAll();

// Delete value
await storage.delete(key: key);

// Delete all
await storage.deleteAll();

// Write value
await storage.write(key: key, value: value);

Configure Android version #

In [project]/android/app/build.gradle set minSdkVersion to >= 18.

android {
    ...

    defaultConfig {
        ...
        minSdkVersion 18
        ...
    }

}
11
likes
0
pub points
73%
popularity

Publisher

verified publishericapps.com

An implementation for flutter secure file storage. For example keychain has a soft limit of 4kb. Using the file system instead we can store much larger content

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_secure_storage, path_provider, pointycastle

More

Packages that depend on flutter_secure_file_storage