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

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. mask属性是css3的吗_CSS mask-image属性详细介绍(小结)
  2. 将一个数组中的字符串用指定字符分割开,分别放到另一个数组中
  3. Distance metric learning
  4. Tomcat - 你该知道的Tomcat生产环境部署
  5. Sublime Text 3143 注册码
  6. python3 gb2312转utf8_字符编码和python使用encode,decode转换utf-8, gbk, gb2312
  7. springbatch的reader,如何使用mybatis?使用MyBatisCursorItemReader可以完美解决
  8. idea下mapreduce的wordcount
  9. Java多线程(四)之ConcurrentSkipListMap深入分析
  10. javascript保留两位
  11. java后台处理excel_java后台利用Apache poi 生成excel文档提供前台下载示例
  12. Python 两个list获取交集,并集,差集的方法(合并、交叉)
  13. Integer中1000==1000为false而100==100为true
  14. nginx配置一个简单的php网站遇到的问题
  15. Python自动控制鼠标中键滚动并截屏保存图像
  16. Microstrategy CEO:比特币是一种货币资产 正在迅速取代黄金作为价值存储
  17. 从零开始学习音视频编程技术(十三) 录屏软件开发之屏幕录像
  18. flash静态的农夫走路_FLASH静态图形图像演示课件
  19. JavaScript格式化日期和时间
  20. iPhone播放声音文件的例子

热门文章

  1. springmv mysql_Spring Data with MySQL (增删插改)
  2. 项目报错:The server time zone value '�й���׼ʱ��'
  3. 【分享】微软面试题及答案 (很需要开放性思维啊)
  4. win10玩cf不能全屏_《大富翁4超时空之旅》win7/win10兼容性、平衡修改版
  5. 有点哀苦,有点迷茫,有点苦逼
  6. 每日一句:Effort
  7. 电脑爱好者GHOSTXPSP3网吧专用版V1.0
  8. python开放源代码的版本控制系统_开源点评:源代码版本控制系统介绍
  9. 史上最全性能测试方案
  10. CSS *IS* AWESOME 解读