Flutter Secure Storage is a plugin that used to store important data like API keys, user information, and access tokens. This storage uses Android's KeyStore and iOS's Keychain to keep the data safe.
Support for Cross-Platform: Ios, android, macOs, linux, web, Windows.
Platform Encryption: Uses KeyStore on Android, Keychain on iOS/macOS.
Asynchronous: Non-blocking data operations.
Easy API: Simple methods to read, write, delete data.Customizable Encryption: Allows customization on Android.
- Add to pubspec.yaml:
dependencies:
flutter_secure_storage: ^9.0.0
Import the package: import 'package:flutter_secure_storage/flutter_secure_storage.dart';
Initialize secure storage: final storage = FlutterSecureStorage();
Storing data: await storage.write(key: 'access_token', value: 'your_token');
Reading data:
String? token = await storage.read(key: 'access_token');
Deleting data: await storage.delete(key: 'access_token');
Clear all data: await storage.deleteAll();
Only keep sensitive data that you need to store.
Expire our login tokens regularly.
Set encryption on Android for customised security.
Flutter Secure Storage makes secure data management between platforms easy and is a must have whenever an app works with sensitive data. Its easy-to-use API and platform specific encryption means that your data will always be protected.
Ready to transform your business with our technology solutions? Contact Us today to Leverage Our Flutter Expertise.