# fluttertpc_flutter_keychain **Repository Path**: lixiaoyu_java/fluttertpc_flutter_keychain ## Basic Information - **Project Name**: fluttertpc_flutter_keychain - **Description**: fluttertpc_flutter_keychain - **Primary Language**: Unknown - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-27 - **Last Updated**: 2025-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](https://developer.apple.com/library/content/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html#//apple_ref/doc/uid/TP30000897-CH203-TP1) is used for iOS * AES encryption is used for Android. AES secret key is encrypted with RSA and RSA key is stored in [KeyStore](https://developer.android.com/training/articles/keystore.html) *Note* KeyStore was introduced in Android 4.3 (API level 18). The plugin does not work on earlier versions. ## **OpenHarmony** \- [中文](./README_OpenHarmony_CN.md) \- [EN](./README_OpenHarmony.md) ## Getting Started ```dart 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(); ``` ### 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](https://flutter.io/developing-packages/#edit-plugin-package).