Giter Club home page Giter Club logo

Comments (3)

gaoyangcr7 avatar gaoyangcr7 commented on August 15, 2024

是的,毕竟只是指纹功能的demo,如果愿意贡献代码,非常欢迎~

from biometricpromptdemo.

yline avatar yline commented on August 15, 2024

可以参考:google官方提供的方案
链接在:https://android-developers.googleblog.com/2015/10/new-in-android-samples-authenticating.html
对应的代码在:https://github.com/googlesamples/android-FingerprintDialog

方案简介:
开启支付流程:
1)Android创建非对称的公钥和私钥,保存在系统安全区域中。
2)Android验证指纹后,用户验证支付密码,验证成功后将公钥上传给服务器。

支付流程:
1)用户选择支付,Android开始指纹验证,用户输入指纹。
2)Android从系统安全区域获取私钥,使用私钥对商品信息进行签名,然后将商品信息和签名上传给服务器。
3)服务器使用公钥和商品信息,对上传的签名进行校验。

这一套方案整体没问题。
但百密一疏,公钥上传可能会被截获。所以最终解决方案,是公私钥自己做一对,然后放进app,最后放入系统安全区域。因为涉及到自己做的公私钥,因此不能分享代码。

from biometricpromptdemo.

declife avatar declife commented on August 15, 2024

直接把私钥放进app?不知道哪里的谁安装app的情况下怎么不经过网络传输把自己做的密钥放进去?

from biometricpromptdemo.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.