authpass / biometric_storage

Flutter plugin to store data behind biometric authentication (ie. fingerprint)
https://pub.dev/packages/biometric_storage
MIT License
183 stars 107 forks source link

[Question] Storing encrypted data inside text file on filesystem #122

Open HimanshuGangwani opened 4 months ago

HimanshuGangwani commented 4 months ago

Hey,

I wanted to understand why there's a text file (ending with v2.txt) created on the filesystem when we are storing/accessing the key file in keystore.

ref: https://github.com/authpass/biometric_storage/blob/main/android/src/main/kotlin/design/codeux/biometric_storage/BiometricStorageFile.kt#L32

Wanted to know the flow on how this file is encrypted/decrypted when the biometrics are entered. And also the role of keystore in all of this

Thanks