flutter_db_inspector_secure_storage 2.0.0 copy "flutter_db_inspector_secure_storage: ^2.0.0" to clipboard
flutter_db_inspector_secure_storage: ^2.0.0 copied to clipboard

flutter_secure_storage adapter for Flutter DB Inspector. Lists secure storage keys with values masked by default.

flutter_db_inspector_secure_storage #

flutter_secure_storage adapter for Flutter DB Inspector. Lists the keys in secure storage and lets you add, edit and delete entries while your app runs. Values are masked by default.

Install #

dependencies:
  flutter_db_inspector: ^2.0.0
  flutter_db_inspector_secure_storage: ^2.0.0

Register #

DbInspector.initialize(enabled: kDebugMode);
DbInspector.registerDatabase(
  name: 'secrets',
  adapter: SecureStorageAdapter(const FlutterSecureStorage()),
);

// Only on a development build where showing secrets is acceptable:
SecureStorageAdapter(const FlutterSecureStorage(), revealValues: true);

All entries appear in one entity named secure_storage with key, value and type columns.

Masking #

With revealValues: false (the default) values are never read from secure storage for display: rows show them as masked, search and filters cannot match their content, and value.read is refused with PERMISSION_DENIED. Writes are still allowed, so a token can be replaced without being revealed.

Limitations #

  • Only string values can be written (INVALID_REQUEST otherwise).
  • Keys are listed through readAll(), which is asynchronous; the adapter reloads the key list at the start of every request.
  • Platform options (AndroidOptions, IOSOptions, ...) are those of the FlutterSecureStorage instance you pass in.
  • Clearing the entity calls deleteAll(), which removes every entry visible to those options.
  • While masked, the type column shows MaskedValue instead of String.
0
likes
140
points
180
downloads

Documentation

API reference

Publisher

verified publishermanishdevan.com

Weekly Downloads

flutter_secure_storage adapter for Flutter DB Inspector. Lists secure storage keys with values masked by default.

Homepage
Repository (GitHub)
View/report issues

Topics

#secure-storage #storage #key-value #inspector

License

MIT (license)

Dependencies

flutter, flutter_db_inspector, flutter_secure_storage

More

Packages that depend on flutter_db_inspector_secure_storage