问题描述
我正在寻找一种添加生物识别身份验证的方法,以从Flutter应用程序中从安全存储( KeyStore 和 KeyChain )读取值
我发现这可以在Android中完成,但是我没有设法使其起作用:
https://labs.f-secure.com/blog/how-secure-is-your-android-keystore-authentication/
https://riptutorial.com/android/example/29719/how-to-use-android-fingerprint-api-to-save-user-passwords
Flutter安全存储包: https://pub.dev/packages/flutter_secure_storage
flutter_secure_storage是简单的程序包,我还没有看到在存储访问时添加生物识别提示的任何选项。
是否可以使用现有软件包在Flutter程序中添加有关访问安全存储的生物识别提示?
解决方法
我个人会使用 local_auth 包。它比 biometric_storage 更灵活,可用于不支持所有形式的生物识别存储(指纹、人脸 ID 等)的设备。