登录界面输入密码键盘不响应

Have you ever entered the wrong password on your computer by accident and noticed it takes a few moments to respond in comparison to entering the correct one? Why is that? Today’s SuperUser Q&A post has the answer to a curious reader’s question.

您是否曾经无意间在计算机上输入了错误的密码,并且注意到与输入正确的密码相比,它需要花费一些时间来做出响应? 这是为什么? 今天的“超级用户问答”帖子回答了一个好奇的读者的问题。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Screenshot courtesy of sully213 (Flickr).

屏幕截图由sully213(Flickr)提供 。

问题 (The Question)

SuperUser reader user3536548 wants to know why there is a longer response time when an incorrect password is entered:

SuperUser阅读器user3536548想知道为什么输入错误密码时响应时间更长:

When you enter a password and it is correct, the response time is practically instantaneous. But when you enter an incorrect password (by accident or having forgotten the correct one), it takes a while (10-30 seconds) before it responds that the password is incorrect.

输入正确的密码后,响应时间几乎是瞬时的。 但是,如果您输入了错误的密码(偶然或忘记了正确的密码),则需要一段时间(10到30秒),然后它才会响应密码不正确。

Why does it take so long (relatively) to say that the password is incorrect? This has always bugged me when entering incorrect passwords on Windows and Linux systems (regular and VM-based). I am not sure about Mac OSX since I cannot remember if it is the same (it has been a while since I last used a Mac).

为什么说密码不正确要花这么长时间(相对)? 在Windows和Linux系统(常规和基于VM)上输入不正确的密码时,这总是困扰我。 我不确定Mac OSX,因为我不记得它是否相同(自从我上次使用Mac以来已经有一段时间了)。

I am asking in the context of a user logging in to the system physically on location rather than through SSH which could conceivably use somewhat different mechanisms to log in (validate credentials).

我是在用户实际在本地而不是通过SSH登录系统的情况下询问的,可以想象使用一些不同的机制来登录(验证凭据)。

Why is there a longer response time when you enter an incorrect password?

输入错误密码后,为什么响应时间更长?

答案 (The Answer)

SuperUser contributor Michael Kjorling has the answer for us:

超级用户贡献者Michael Kjorling为我们提供了答案:

Why does it take so long (relatively) to say that the password is incorrect?

为什么说密码不正确要花这么长时间(相对)?

It does not. Or rather, it does not take the computer any longer to determine that your password is incorrect compared to it being correct. The work involved for the computer is, ideally, exactly the same. Any password verification scheme that takes a different amount of time based on whether the password is correct or incorrect can be exploited to gain knowledge, however small, of the password in less time than would otherwise be the case.

它不是。 确切地说,与正确的密码相比,它不再需要计算机确定您的密码是错误的。 理想情况下,计算机所涉及的工作是完全相同的。 可以利用基于密码是正确还是不正确而花费不同时间量的任何密码验证方案来以比其他情况更少的时间获得密码知识,无论该密码多么小。

The delay is an artificial delay to make repeatedly trying to gain access by using different passwords infeasible, even if you have some idea of what the password is and automatic account lockout is disabled (which it should be in most scenarios as it would otherwise allow for a trivial denial of service against an arbitrary account).

延迟是人为延迟,即使您对密码是什么,并且已禁用自动帐户锁定(在大多数情况下应该是这种情况,因为它会允许针对任意帐户的小额拒绝服务)。

The general term for this behavior is tarpitting. While the Wikipedia article talks more about network service tarpitting, the concept is generic. The Old New Thing is not an official source either, but the article “Why does it take longer to reject an invalid password than to accept a valid one?” does talk about this (near the end of the article).

这种行为的总称是柏油 。 虽然Wikipedia文章更多地讨论了网络服务的tarpitting,但是这个概念是通用的。 老旧事物也不是官方消息,而是文章“ 为什么拒绝无效密码比接受有效密码要花更长的时间? ”确实谈论了这一点(在文章结尾附近)。



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。

翻译自: https://www.howtogeek.com/217649/why-does-it-take-longer-for-a-computer-to-respond-to-an-incorrect-password-versus-a-correct-one/

登录界面输入密码键盘不响应

登录界面输入密码键盘不响应_为什么计算机响应错误的密码和正确的密码需要更长的时间?...相关推荐

  1. 关于在win10登录界面输入正确密码不能登入

    关于在win10登录界面输入正确密码不能登入 问题描述 解决方法流程 写在最后 参考网页网址 问题描述 ---- 在win10登录界面输入正确密码,然而登录界面在短时间等待之后"黑" ...

  2. 微信登录画面_微信登录界面的地球变了_微信登录界面首变真相

    细心的小伙伴发现在启动微信的时候,那个经典的一个小人剪影面对着地球的画面开始发生了一些变化,似乎云层变得更为清晰细致了.微信登录界面6年来首变化,那么为何改变来的如此突然呢,下面小编就分享给大家! 手 ...

  3. python练习—用户登录界面输入验证码测试

    用户登录界面输入验证码测试--Python import random s="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234 ...

  4. java实现图形界面输入半径求圆面积_测试开发工程师系列之Android自动化测试Appium(Python)连载(7)安卓图形界面...

    安卓图形界面 UI即User Interface(用户界面)的简称.泛指用户操作界面,包含移动APP,网页,智能穿戴设备等.Android用户界面测试,要测试应用程序如何与一个真实的用户交互.这种测试 ...

  5. Linux登录界面输入正确密码却显示认证失败

    腾讯云服务器,Linux(Ubuntu18.04.1) 之前一直也用着都没事,突然有一次登录就显示: "Sorry,that didn't work.Please try again.&qu ...

  6. ubuntu16.04登录界面输入用户名密码后又回到登录界面

    原因有以下几种: 最好先查看log,即/var/log/Xorg.0.log . 1,磁盘空间不够了. 解决办法:字符界面登录,删除一些文件,腾出一些空间,重启即可. 2,/home/username ...

  7. java实现图形界面输入半径求圆面积_自学java真的很难吗?学到什么程度才能进大厂?...

    这里我做一个统一答疑,这些东西真不是你一个刚学习Java的人该看的,也不是你工作第一年应该去看的东西,不要总在某些地方看到一些词就跟风.技术这门活,你入行了就会发现,还有更广阔的技术栈,更多的开源项目 ...

  8. 微软登录界面加载不出_微软要硬了,做出这个目前最好用的浏览器

    众所周知,微软能打造出一个全球通用的系统,但就是做不出一个能用的浏览器. IE 浏览器的黑历史就不提了,即使后来洗心革面,推出了基于 Win 10 的 Edge 浏览器,也还是难以挽尊 市场份额甚至不 ...

  9. java实现图形界面输入半径求圆面积_【读】Java核心技术卷1

    阅读原文:[读]Java核心技术卷1 看到这本书时,我的内心是崩溃的,卷1就700多页,但是这本书是很多前辈所推荐的,想必其中必有精华所在,硬着头皮上吧. 如何阅读本书 拿到书的第一眼肯定去看目录,大 ...

最新文章

  1. java正则 链接_Java正则表达式获取网址和链接文字解析
  2. 配置IISExpress允许外部访问
  3. mysql dw解决方案_MySQL 的 DW 解决方案(MySQL + Infobright)
  4. Memcached常用操作
  5. pythoncookie自动模拟登录_用Python模拟技巧带你实现自动抽屉登录自动点赞
  6. 【项目调研+论文阅读】Lattice LSTM神经网络医学文本命名实体识别 | day7
  7. 应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的(转载)...
  8. 【数据库原理】滨江学院姜青山 期末试卷知识点笔记整理 南京信息工程大学
  9. 学习nodejs之restful
  10. 【论文分享】ACL 2020 信息抽取与问答系统
  11. Java虚拟机 --- 内存区域
  12. GPS定位RTK解决方案
  13. oracle自动导出awr报告,自动生成awr报告脚本
  14. 红米6pro刷机教无人直播包教程
  15. 脑机接口五大应用场景
  16. 追梦App系列博客——后端架构篇
  17. phpmyadmin的初始账号密码是多少
  18. COCO 与VOC格式转化 -目标识别
  19. Python中ArcPy实现Excel时序数据读取、反距离加权IDW插值与批量掩膜
  20. 【终极之战】基于Vue3+Vant3造一个网页版的类掘金app项目 - 个人主页

热门文章

  1. 43.FFmpeg学习笔记 - flv格式解析
  2. scrum master_成为魔术师如何使我成为更好的Scrum Master。
  3. Android系统10 RK3399 init进程启动(三十三) property属性系统框架
  4. Kafka Java客户端Stream API
  5. IO流(字节流和字符流)
  6. 《筱静观察》第三季第8期丨区块链如何与实体经济融合
  7. 我的入门第二课——自由测试
  8. 遗传算法:交叉操作 Order Crossover OX1, OX2, OX3, OX4, OX5
  9. 猿创征文|一名大三学生的前端学习之路(真情流露)
  10. Android编舞者类Choreographer小结