windows 使用支持 NFC 的手机解锁计算机

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14267723/
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-09-09 10:10:44  来源:igfitidea点击:

Unlocking computer with NFC-enabled phone

windowsmacosauthenticationapplescriptnfc

提问by pathikrit

I want to have an NFC sticker on my laptop/desktop which when swiped with my NFC phone will unlock my computer. If I don't have my phone with me, I can still login using my normal password. I so far bought some NFC stickers and installed TagStandon my phone which manages to post to a server that I control. I want to write some small piece of software that would listen to this server and unlock my computer if the server tells my computer to do so. I have not made the last part work as I don't know how to write such a software for either Mac or PC. Is it possible? If so, how?

我想在我的笔记本电脑/台式机上贴一个 NFC 贴纸,用我的 NFC 手机刷一下它就能解锁我的电脑。如果我没有手机,我仍然可以使用普通密码登录。到目前为止,我购买了一些 NFC 贴纸并在我的手机上安装了TagStand,它设法发布到我控制的服务器上。我想编写一些小软件,如果服务器告诉我的计算机这样做,它将侦听此服务器并解锁我的计算机。我没有让最后一部分工作,因为我不知道如何为 Mac 或 PC 编写这样的软件。是否可以?如果是这样,如何?

采纳答案by Waleed

The NFC part is very simple but the unlocking part is more complicated than you think. Unlocking your computer shouldneverbe done programmatically because if your program can do it, then so can others.Not to mention that this 'program' is going to act based on communication between a remote server and itself. This is a security nightmare, that has no use other than the experimental benefit.

NFC 部分非常简单,但解锁部分比您想象的要复杂。永远不应该以编程方式解锁您的计算机,因为如果您的程序可以做到,那么其他人也可以。更不用说这个“程序”将基于远程服务器与其自身之间的通信来运行。这是一个安全噩梦,除了实验性的好处外没有任何用处。

If you do enough research you'll find that locking (not unlocking) a computer is possible programmatically. Unlocking on the other hand is not easy..

如果您进行足够的研究,您会发现可以通过编程方式锁定(而不是解锁)计算机。另一方面解锁并不容易..

Here are a few links for you, I've been though them before, never tested them though...

这里有一些链接给你,我以前看过它们,但从未测试过它们......

Remotely-Unlock-a-Windows-Workstation

远程解锁 Windows 工作站

unlock-local-computer-using-net

解锁本地计算机使用网络

unlock-windows-workstation-programatically

以编程方式解锁 Windows 工作站

aucun

奥村

回答by user3019562

I thing another way of accomplishing this would be to do it the other way around. Have your phone store your password in an app that could pass it along to the computer. The computer would need some sort of USB NFC reader that would essentially act as a keyboard. When you tap your phone to the USB device it "types" your password into the text box and the last thing the app does is "hit the enter key" Obvious security issue is if you are running the unlocker app it is essentially just constantly sending out your password...

我认为实现这一点的另一种方法是反过来做。让您的手机将您的密码存储在可以将其传递到计算机的应用程序中。计算机需要某种 USB NFC 读取器,它本质上可以充当键盘。当您将手机轻触 USB 设备时,它会将您的密码“输入”到文本框中,该应用程序所做的最后一件事就是“按回车键” 明显的安全问题是,如果您正在运行解锁器应用程序,它本质上只是不断地发送出你的密码...

回答by user2813274

I would like to note that Asus has launched a product that does this (allows NFC login) for windows 8, so it is possible - as far as how secure it is I don't know...

我想指出的是,华硕已经推出了一款适用于 Windows 8 的产品(允许 NFC 登录),因此有可能 - 至于它的安全性我不知道......