|
|
@ -58,9 +58,11 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase {
|
|
|
|
hiverCipher = fluffybox.HiveAesCipher(base64Url.decode(rawEncryptionKey));
|
|
|
|
hiverCipher = fluffybox.HiveAesCipher(base64Url.decode(rawEncryptionKey));
|
|
|
|
} on MissingPluginException catch (_) {
|
|
|
|
} on MissingPluginException catch (_) {
|
|
|
|
Logs().i('FluffyBox encryption is not supported on this platform');
|
|
|
|
Logs().i('FluffyBox encryption is not supported on this platform');
|
|
|
|
} catch (_) {
|
|
|
|
} catch (e, s) {
|
|
|
|
const FlutterSecureStorage().delete(key: _cipherStorageKey);
|
|
|
|
const FlutterSecureStorage()
|
|
|
|
rethrow;
|
|
|
|
.delete(key: _cipherStorageKey)
|
|
|
|
|
|
|
|
.catchError((_) {});
|
|
|
|
|
|
|
|
Logs().w('Unable to init FluffyBox encryption', e, s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// ignore: deprecated_member_use
|
|
|
|
// ignore: deprecated_member_use
|
|
|
|