flutter_keychain
Keychain(iOS) 및 Keystore(Android)를 통한 Flutter 보안 저장소. iOS 접근 그룹과 항목 레이블을 선택적으로 지원.
안드로이드에서는 KeyStore를, iOS에서는 Keychain을 통해 안전한 저장을 위한 플러터 플러그인
{"sdk":"flutter"}{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.