flutter_secure_storage 1.0.0 copy "flutter_secure_storage: ^1.0.0" to clipboard
flutter_secure_storage: ^1.0.0 copied to clipboard

outdated

Secure Storage plugin for Flutter.

flutter_secure_storage #

A Flutter plugin to store data in secure storage:

Note KeyStore was introduced in Android 4.3 (API level 18). The plugin wouldn't work for earlier versions.

Getting Started #

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

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

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

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

Configure Android version #

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

android {
    ...
    
    defaultConfig {
        ...
        minSdkVersion 18
        ...
    }

}