且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP的Web应用程序指纹验证

更新时间:2023-12-03 20:40:28

Jaison,你不能这样做和PHP不要在同一个句子的归属。

Jaison, "you cannot do it" and "PHP" don't belong in the same sentence.

Berserkpi,你的可以的PHP中做到这一点,而只是它的一部分。我不知道的硬件,但我可以概括项目的参数。

Berserkpi, you can do this in PHP, but only parts of it. I don't know about the hardware but I can generalize the parameters of your project.

中药指纹图谱是要一定要在某种客户端机器来完成。这意味着接通了类似的计算机,可能是通过一个USB或其他串行连接的指纹读取装置。

Fingerprinting is going to have to be done on some sort of client machine. That means a fingerprint-reading device hooked up to something like a computer, probably through a USB or other serial connection.

我不能告诉你,指纹是怎么回事工作,但你需要得到提交您的指纹进行身份验证的计算机上运行的程序。这些指纹将被发送到服务器,可能通过一个POST请求,你已经建立了一个PHP API。这将是最困难的部分。

I can't tell you how that fingerprinting is going to work, but you'll need to get a program running on the machine that submits your fingerprints for authentication. Those fingerprints are going to be sent to a server, probably through a POST request and a PHP API you've set up. This is going to be the toughest part.

艰难的部分是你需要这些版画是一致的 - 瓦特/ Web应用程序你不使用密码获取该种看起来像你的密码;或者用户可以认证或密码被拒绝。指纹,可能不是这种情况。

The tough part is that you need those prints to be consistant -- w/web apps you don't get in with a password that kinds of looks like your password; either the user can be authenticated or the password is rejected. With fingerprints that may not be the case.

不管是什么,只要它是一致的,你可以或多或少认为它像一个MD5哈希值。你匹配它您在数据库中存储哈希版本,如果它匹配您生成令牌(可能是另一个MD5)哈希是好的一个小时左右验证了她。

Whatever it is, so long as it's consistant you can consider it more or less like an MD5 hash. You match it against a hashed version you store in your database and if it matches you authenticate her by generating a token (maybe another MD5) hash that is good for an hour or so.