javascript 如何通过javascript获取人的指纹

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34341770/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-28 17:35:04  来源:igfitidea点击:

how to get a persons fingerprint through javascript

javascriptfingerprint

提问by user1763470

I need to add a feature where every invoice my asp.net solution needs to be signed digitally by the person making the invoice. So my client wants the option that rather than signing digitally using a mouse, they want the person making the invoice to put in their fingerprint.

我需要添加一个功能,其中我的 asp.net 解决方案的每张发票都需要由制作发票的人进行数字签名。所以我的客户想要一个选项,而不是使用鼠标进行数字签名,他们希望制作发票的人输入他们的指纹。

How can I get the finger print of a person in my web page using javascript.

如何使用 javascript 在我的网页中获取某人的指纹。

采纳答案by Quantumplate

Your question is about digitally signing and using JavaScript to do this.

您的问题是关于数字签名和使用 JavaScript 来执行此操作。

I think accessing finger print scanners may not be possible, many devices simply don't have finger print scanners let alone have access to them via JavaScript.

我认为访问指纹扫描仪可能是不可能的,许多设备根本没有指纹扫描仪,更不用说通过 JavaScript 访问它们了。

What I would suggest instead is looking at what JavaScript makes available and how useful this is as digital signing. For our work we just required that the user type in their name (and displayed it in a fancy handwriting font) and that was enough. But you could do better than this by accessing the web cam or mike via JavaScript. You could then get either...

相反,我建议查看 JavaScript 提供的内容以及它作为数字签名的有用性。在我们的工作中,我们只需要用户输入他们的名字(并以精美的手写字体显示),这就足够了。但是,通过 JavaScript 访问网络摄像头或麦克风,您可以做得比这更好。然后你可以得到...

  1. A voice print (user states their name and it is recorded)
  2. A photo/image of the user (via webcam)
  3. A photo/image of users finger (for finger print)
  1. 声纹(用户说出他们的名字并被记录下来)
  2. 用户的照片/图像(通过网络摄像头)
  3. 用户手指的照片/图像(用于指纹)

The above methods have a number of draw backs, the main one being you can't validate that the user was actually in the photo (they could hold up a magazine image in front of the webcam) but this is true of many signing methods (written signature on paper can be anything).

上述方法有许多缺点,主要是您无法验证用户是否确实在照片中(他们可以在网络摄像头前举起杂志图片),但许多签名方法都是如此(纸上的书面签名可以是任何东西)。

If you wanted to go down the finger print route you could then process the image (from the web cam) of a finger print, although this would be fairly complex.

如果你想沿着指纹路线走下去,你可以处理指纹的图像(来自网络摄像头),尽管这会相当复杂。