使用生物识别技术将数据存储在安全的存储中

问题描述

我正在寻找一种添加生物识别身份验证的方法,以从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

在iOS中:
https://developer.apple.com/documentation/localauthentication/accessing_keychain_items_with_face_id_or_touch_id

Flutter安全存储包: https://pub.dev/packages/flutter_secure_storage

flutter_secure_storage是简单的程序包,我还没有看到在存储访问时添加生物识别提示的任何选项。

是否可以使用现有软件包在Flutter程序中添加有关访问安全存储的生物识别提示?

解决方法

我个人会使用 local_auth 包。它比 biometric_storage 更灵活,可用于不支持所有形式的生物识别存储(指纹、人脸 ID 等)的设备。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...