store method
Stores sensitive data securely.
Example:
await secureStorage.store({
'gemini_key': 'AIza...',
'openai_key': 'sk-...',
});
Implementation
Future<void> store(Map<String, String> data) async {
final key = await _getMachineKey();
final jsonData = json.encode(data);
final encrypted = _encrypt(utf8.encode(jsonData), key);
await _credentialsFile.writeAsBytes(encrypted);
}