flutter_keychain_plus 0.0.4 copy "flutter_keychain_plus: ^0.0.4" to clipboard
flutter_keychain_plus: ^0.0.4 copied to clipboard

Flutter secure storage via Keychain and Keystore

flutter_keychain_plus #

This Plugin Updated Version of flutter_keychain

A Flutter plugin for supporting secure storage of strings via Keychain and Keystore

If you have other types you want to store, you need to serialize to and from UTF-8 strings.

  • Keychain is used for iOS
  • AES encryption is used for Android. AES secret key is encrypted with RSA and RSA key is stored in KeyStore

Note KeyStore was introduced in Android 4.3 (API level 18). The plugin does not work on earlier versions.

Getting Started #


import 'package:flutter_keychain_plus/flutter_keychain_plus.dart';
...

// Get value
var value = await FlutterKeychainPlus.get(key: "key");

// Put value
await FlutterKeychainPlus.put(key: "key", value: "value");

// Remove item
await FlutterKeychainPlus.remove(key: "key");

// Clear the secure store
await FlutterKeychainPlus.clear();

Configure Android version #

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

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

Contributing #

For help on editing plugin code, view the documentation.

1
likes
130
points
175
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter secure storage via Keychain and Keystore

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_keychain_plus

Packages that implement flutter_keychain_plus