flutter_keychain
Armazenamento seguro no Flutter por meio do Keychain (iOS) e do Keystore (Android). Suporta grupos de acesso opcionais no iOS e rótulos de itens.
Um plug-in do Flutter para armazenamento seguro no Android por meio do KeyStore e no iOS por meio do Keychain
Texto original em inglês. Visite o GitHub para a versão atual.
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.
Note KeyStore was introduced in Android 4.3 (API level 18). The plugin does not work on earlier versions.
import 'package:flutter_keychain/flutter_keychain.dart';
...
// Get value
var value = await FlutterKeychain.get(key: "key");
// Put value
await FlutterKeychain.put(key: "key", value: "value");
// Remove item
await FlutterKeychain.remove(key: "key");
// Clear the secure store
await FlutterKeychain.clear();
In [project]/android/app/build.gradle set minSdkVersion to >= 18.
android {
...
defaultConfig {
...
minSdkVersion 18
...
}
}
For help on editing plugin code, view the documentation.
Lista de dependências 2 itens
{"sdk":"flutter"}{"sdk":"flutter"}Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗