I want to make a mobile application using Flutter like this
https://play.google.com/store/apps/details?id=com.enchantedcloud.photovault
but I don't know how to keep the data actually safe
I have used aes_crpyt package ( https://pub.dev/packages/aes_crypt ) which allows me to encrpyt and decrpyt files but how can I retrieve the data to be shown in the application without being decrypted as normal files which can be opened using any explorer which can access root files
You can check out this package: flutter_secure_storage. From the documentation:
This way your data can be saved in a
SharedPreferences
fashion in a safer way through encryption.Sample syntax:
Since any database's purpose is to only store pure informational organized data. It's not suitable for storing large files such as media, documents, or images. There are 2 alternatives:
I recommend the 1st method since you can avoid saving the encrypted files at local and risking chance to expose it to other users.