SecureStorageService class

Service for securely storing and retrieving sensitive data like API keys.

Uses AES-256 encryption with a machine-specific key derived from system information. The encryption key is generated once per machine and stored in a secure location.

Constructors

SecureStorageService()
factory

Properties

hasData bool
Checks if secure storage contains any data.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Deletes all securely stored data.
migrateFromYaml(Map<String, String> yamlData) Future<void>
Migrates data from plain YAML config to encrypted storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieve() Future<Map<String, String>>
Retrieves securely stored data.
store(Map<String, String> data) Future<void>
Stores sensitive data securely.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited