TF-886 Store encryptionKey in Hive database

This commit is contained in:
dab246
2022-09-07 10:35:12 +07:00
committed by Dat H. Pham
parent f1e512148d
commit 6018cd383a
11 changed files with 209 additions and 21 deletions
@@ -1,5 +1,8 @@
import 'dart:typed_data';
import 'package:hive/hive.dart';
import 'package:tmail_ui_user/features/caching/config/hive_cache_config.dart';
abstract class HiveCacheClient<T> {
@@ -32,4 +35,8 @@ abstract class HiveCacheClient<T> {
}
Future<void> clearAllData();
Future<Uint8List?> getEncryptionKey() {
return HiveCacheConfig.getEncryptionKey();
}
}