All Projects → mogol → Flutter_secure_storage

mogol / Flutter_secure_storage

Licence: bsd-3-clause
A Flutter plugin to store data in secure storage

Programming Languages

java
68154 projects - #9 most used programming language
dart
5743 projects
dartlang
94 projects

Projects that are alternatives of or similar to Flutter secure storage

Flutter mlkit
A Flutter plugin to use the Firebase ML Kit.
Stars: ✭ 352 (-40.03%)
Mutual labels:  flutter-plugin
Audioplayer
A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )
Stars: ✭ 461 (-21.47%)
Mutual labels:  flutter-plugin
Dart pdf
Pdf creation module for dart/flutter
Stars: ✭ 500 (-14.82%)
Mutual labels:  flutter-plugin
Youtube player flutter
Flutter plugin for playing or streaming YouTube videos inline using the official iFrame Player API. Supports both Android and iOS platforms.
Stars: ✭ 366 (-37.65%)
Mutual labels:  flutter-plugin
Flutter bugly
腾讯Bugly flutter应用更新统计及异常上报插件,支持Android、iOS
Stars: ✭ 446 (-24.02%)
Mutual labels:  flutter-plugin
Flutter Development Roadmap
Flutter App Developer Roadmap - A complete roadmap to learn Flutter App Development. I tried to learn flutter using this roadmap. If you want to add something please contribute to the project. Happy Learning
Stars: ✭ 474 (-19.25%)
Mutual labels:  flutter-plugin
Flutter page transition
This is Flutter Page Transition Package
Stars: ✭ 314 (-46.51%)
Mutual labels:  flutter-plugin
Flutter Learning
🔥 👍 🌟 ⭐ ⭐⭐ Flutter all you want.Flutter install,flutter samples,Flutter projects,Flutter plugin,Flutter problems,Dart codes,etc.Flutter安装和配置,Flutter开发遇到的难题,Flutter示例代码和模板,Flutter项目实战,Dart语言学习示例代码。
Stars: ✭ 4,941 (+741.74%)
Mutual labels:  flutter-plugin
Flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 455 (-22.49%)
Mutual labels:  flutter-plugin
Flutter Ffmpeg
FFmpeg plugin for Flutter
Stars: ✭ 494 (-15.84%)
Mutual labels:  flutter-plugin
Flutter facebook login
A Flutter plugin for allowing users to authenticate with native Android & iOS Facebook login SDKs.
Stars: ✭ 387 (-34.07%)
Mutual labels:  flutter-plugin
Plugins
Flutter plugins created by Rody Davis
Stars: ✭ 424 (-27.77%)
Mutual labels:  flutter-plugin
Amap map fluttify
高德地图 地图组件 Flutter插件
Stars: ✭ 479 (-18.4%)
Mutual labels:  flutter-plugin
Dna
dna, dart native access. A lightweight dart to native super channel plugin, You can use it to invoke any native code directly in contextual and chained dart code.
Stars: ✭ 355 (-39.52%)
Mutual labels:  flutter-plugin
Flutter showcaseview
Flutter plugin that allows you to showcase your features on iOS and Android. 👌🔝🎉
Stars: ✭ 502 (-14.48%)
Mutual labels:  flutter-plugin
Uni links
Flutter plugin for accepting incoming links.
Stars: ✭ 339 (-42.25%)
Mutual labels:  flutter-plugin
Audio service
Flutter plugin to play audio in the background while the screen is off.
Stars: ✭ 471 (-19.76%)
Mutual labels:  flutter-plugin
Flutter downloader
Flutter Downloader - A plugin for creating and managing download tasks. Supports iOS and Android. Maintainer: @hnvn
Stars: ✭ 546 (-6.98%)
Mutual labels:  flutter-plugin
Catcher
Flutter error catching & handling plugin. Handles and reports exceptions in your app!
Stars: ✭ 505 (-13.97%)
Mutual labels:  flutter-plugin
Responsiveframework
Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple. Demo: https://gallery.codelessly.com/flutterwebsites/minimal/
Stars: ✭ 476 (-18.91%)
Mutual labels:  flutter-plugin

flutter_secure_storage

A Flutter plugin to store data in secure storage:

  • 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
  • libsecret is used for Linux.

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

Getting Started

import 'package:flutter_secure_storage/flutter_secure_storage.dart';

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

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

// Read all values
Map<String, String> allValues = await storage.readAll();

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

// Delete all 
await storage.deleteAll();

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

Configure Android version

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

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

}

Note By default Android backups data on Google Drive. It can cause exception java.security.InvalidKeyException:Failed to unwrap key. You need to

Linux

You need libsecret-1-dev and libjsoncpp-dev on your machine to build the project, and libsecret-1-0 and libjsoncpp1 to run the application (add it as a dependency after packaging your app). If you using snapcraft to build the project use the following

parts:
  uet-lms:
    source: .
    plugin: flutter
    flutter-target: lib/main.dart 
    build-packages:
     - libsecret-1-dev
     - libjsoncpp-dev
    stage-packages:
     - libsecret-1-dev
     - libjsoncpp1-dev

Integration Tests

Run the following command from example directory

flutter drive --target=test_driver/app.dart
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].