|
|
|
@ -36,6 +36,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
|
|
// https://pub.dev/packages/encrypt |
|
|
|
|
// Encrypter(AES(key)) |
|
|
|
|
// secure-random --length 16 --base 16 |
|
|
|
|
// You can generate a secret key based on user data, as an example of a hash pincode |
|
|
|
|
FlutterSecureStorageAurora.setSecret('5872747ed1ceda363808efb8b2b18b20'); |
|
|
|
|
|
|
|
|
|
const key = 'my_key'; |
|
|
|
@ -111,8 +112,7 @@ class _MyAppState extends State<MyApp> {
|
|
|
|
|
padding: const EdgeInsets.all(20), |
|
|
|
|
decoration: const BoxDecoration( |
|
|
|
|
color: Colors.green, |
|
|
|
|
borderRadius: |
|
|
|
|
BorderRadius.all(Radius.circular(10.0)), |
|
|
|
|
borderRadius: BorderRadius.all(Radius.circular(10.0)), |
|
|
|
|
), |
|
|
|
|
child: const Text( |
|
|
|
|
'Demo application demonstration implementation of flutter_secure_storage', |
|
|
|
|