Viewing version 2.1.1. Open the latest package page.

flutter_secure_storage_web

2.1.1

Web implementation of flutter_secure_storage. Use flutter_secure_storage for the full flutter package.

Download archive

Readme

flutter_secure_storage_web

This is the platform-specific implementation of flutter_secure_storage for web.

Features

  • Secure storage using WebCrypto.
  • Application-specific key wrapping for enhanced security.

Important Notice

This plugin only works on HTTPS or localhost environments. Ensure that proper HTTP Strict Transport Security (HSTS) headers are configured to secure your application.

Configuration

You can use application-specific key wrapping to make keys more secure.

Usage

Refer to the main flutter_secure_storage README for common usage instructions.

License

This project is licensed under the BSD 3 License. See the LICENSE file for details.

Changelog

2.1.1

  • Fix potential key skipping in readAll when storage is modified concurrently during async decryption by collecting keys synchronously before awaiting.

2.1.0

  • Updated code style
  • Add check for secure context, since operations are only allowed with secure context.

2.0.0

Stable release containing all changes from beta releases, which are:

  • This plugin requires a minimum dart sdk of 3.3.0 or higher and a minimum flutter version of 3.19.0.
  • Migrate away from html to web
  • Remove js in favor of using js-interop
  • Update web dependency support to support <2.0.0 instead of <1.0.0.

Other changes:

  • Migrated from lint to very_good_analysis and clean-up code.

2.0.0-beta.2

Update web dependency support to support <2.0.0 instead of <1.0.0.

2.0.0-beta.1

  • Migrate away from html to web
  • Remove js in favor of using js-interop

1.2.1

Reverts onCupertinoProtectedDataAvailabilityChanged and isCupertinoProtectedDataAvailable.

1.2.0

Updated flutter_secure_storage_platform_interface to latest version.

1.2.0

Updated flutter_secure_storage_platform_interface to latest version.

1.1.2

  • Update Dart SDK Constraint to support <4.0.0 instead of <3.0.0.

1.1.1

Updated flutter_secure_storage_platform_interface to latest version.

1.1.0

1.0.2

  • Fix issue with delete key

1.0.1

  • Fix issue with containsKey

1.0.0

  • Initial Release of Web Implementation
  • Migrated to flutter_lints

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'flutter_secure_storage_web:2.1.1'
pubspec.yaml
name: flutter_secure_storage_web
description: Web implementation of flutter_secure_storage. Use flutter_secure_storage for the full flutter package.
repository: https://github.com/mogol/flutter_secure_storage
version: 2.1.1

environment:
  sdk: ">=3.3.0 <4.0.0"
  flutter: ">=3.19.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_secure_storage_platform_interface: ^2.0.0
  flutter_web_plugins:
    sdk: flutter
  web: ">=0.5.0 <2.0.0"

dev_dependencies:
  flutter_test:
    sdk: flutter
  very_good_analysis: ^7.0.0
flutter:
  plugin:
    platforms:
      web:
        pluginClass: FlutterSecureStorageWeb
        fileName: flutter_secure_storage_web.dart

Version history

VersionPublishedArchiveSHA-256
1.0.0On demandDownloade4f95649…aeb85a
1.0.1On demandDownloadb5251a39…e7c096
1.0.2On demandDownload926716d8…bd716f
1.1.0On demandDownloadcaef516b…91c424
1.1.1On demandDownload42938e70…beaffe
1.1.2On demandDownload30f84f10…f3cf20
1.2.0On demandDownloadcb8dcc88…3d1d5f
1.2.1On demandDownloadf4ebff98…1886a9
2.0.0-beta.1On demandDownload4f95c4d5…9c59bf
2.0.0-beta.2On demandDownload58cf99fe…58ba9a
2.0.0On demandDownload4c3f233e…bef517
2.1.0On demandDownload6a1137df…d5d0c3
2.1.1Cached · Upstream SHA-256 matchedDownload073a62b3…208a1c

Dependencies

flutter { "sdk": "flutter" }

flutter_secure_storage_platform_interface "^2.0.0"

flutter_web_plugins { "sdk": "flutter" }

web "\u003e=0.5.0 \u003c2.0.0"