Skip to content
pubscout

get_secure_storage

1.0.5, released 3 years ago by hubivue.com

Encrypted synchronous key‑value storage for Flutter apps.

$ flutter pub add get_secure_storage
Source repository

What it does

Provides a fast, in‑memory key‑value store that encrypts data on disk using AES‑CTR with SHA‑256 MAC. Supports basic types and offers listeners for changes across Android, iOS, Web, macOS, Linux and Windows.

AI-written summary of version 1.0.5, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need secure, lightweight persistent storage without async APIs.
  • You want a drop‑in replacement for GetStorage with encryption.
  • Cross‑platform apps that require listeners on storage changes.

Skip it when

  • You need relational queries or large binary blobs.
  • You require native secure enclave APIs or biometric unlock.
  • Complex migrations or schema evolution are needed.

Strengths

  • Built‑in AES‑CTR encryption with MAC
  • Synchronous API for simple use cases
  • Cross‑platform support including web
  • Change listeners per box or key

Weaknesses

  • All data kept in memory may affect large datasets
  • Limited to basic types (String, int, double, Map, List)
  • No advanced query or indexing features

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
3

Call GetSecureStorage.init with a password before use; no additional native permissions required.

import 'package:get_secure_storage/get_secure_storage.dart';

void main() async {
  await GetSecureStorage.init(password: 'strongpassword');
  final box = GetSecureStorage();
  box.write('greeting', 'hello');
  print(box.read('greeting'));
}

Alternatives

Packages that do the same job and could replace get_secure_storage.

Works with

Packages commonly used together with get_secure_storage: ones it builds on, ones built on it, and its own family.