android生物识别USB指纹认证教程 [英] android biometric USB fingerprint authentication tutorial

本文介绍了android生物识别USB指纹认证教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用于Android设备的生物识别USB指纹传感器。
我想开发一个通过传感器读取用户指纹并将其存储到SQLite数据库中的应用程序,以便在用户登录时可以对其进行验证。
那么,是否有任何教程或代码示例来说明如何做到这一点?
提前谢谢。

I have a biometric USB fingerprint sensor for android devices. I want to develop an application that reads a user's fingerprint via sensor and store it into an SQLite database so that it can be verified when the user login. So, Are there any tutorials or code samples that explain how to do that? Thanks In Advance.

推荐答案

阅读用户的生物识别材料并将其存储在SQLite数据库中似乎在Android上使用了生物识别技术。通常,在Android上收集用户的生物识别资料会涉及很多安全措施。在经过批准的Android设备上,任何第三方应用都无法读取用户的生物识别材料。它的工作方式是第三方应用程序从框架得到确认,即确实在设备上注册的用户与刚刚通过身份验证的用户相同。

Reading users biometric materials and storing them in an SQLite database seems a suspect usage of biometrics on Android. Normally quite a bit of security measures go into collecting a user's biometrics material on Android. On approved Android devices, no third party app can read a user's biometric material. The way it works is the third party app gets confirmation from the Framework that indeed the user registered on the device is the same user who just now authenticated.

通常是这样的:


  1. 用户注册了生物识别信息设备上的材料通常是通过设备设置来完成的-这是由设备实现/ OEM安全地处理的。

  1. User registered their biometric materials with the device usually through the device Settings -- this is securely handled by the device implementation/OEM.

一段时间后,第三方应用希望

Some time later, a third party app wants a user to authenticate using biometrics.

该应用将用户的需求中继到框架。

The app relays the user's wish to the Framework.

框架处理身份验证。在进行指纹生物识别的情况下,用户在传感器上轻击其指纹,然后传感器检查新指纹是否与预先注册的模板匹配。

The framework handles the authentication. The user, in the case of fingerprint biometrics, taps their fingerprint on the sensor and the sensor checks if the new fingerprint matches a pre-registered template.

框架告诉第三方应用程序,指纹与在设备上注册的模板匹配-否则无法识别该指纹。但是,用户本身的生物识别材料绝不会与第三方应用共享或被允许离开设备。

The framework tells the third party app yes the fingerprint matches the template that was register with the device -- or no this fingerprint is not recognized. But at no point is the biometric material of a user itself shared with a third party app or allowed to leave the device.

所以...是的,您的用例听起来很可疑。

So...yeah, your use case sounds suspect.

您可能会在建议在此处实施。

You may find more info on recommended implementation here.

这篇关于android生物识别USB指纹认证教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆