Skip to content

Commit

Permalink
Using encrypted shared preferences on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrMitkowski committed Jul 11, 2022
1 parent eeec470 commit 6e54602
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/secure_storage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart';
BaseStorage createStorage() => SecureStorage();

class SecureStorage implements BaseStorage {
static final FlutterSecureStorage storage = FlutterSecureStorage();
static final FlutterSecureStorage storage = FlutterSecureStorage(
aOptions: AndroidOptions(encryptedSharedPreferences: true),
);

SecureStorage();

Expand Down

0 comments on commit 6e54602

Please sign in to comment.