Tại sao nó mất lâu hơn cho một máy tính để đáp ứng với một mật khẩu sai so với một chính xác?

Mục lục:

Tại sao nó mất lâu hơn cho một máy tính để đáp ứng với một mật khẩu sai so với một chính xác?
Tại sao nó mất lâu hơn cho một máy tính để đáp ứng với một mật khẩu sai so với một chính xác?

Video: Tại sao nó mất lâu hơn cho một máy tính để đáp ứng với một mật khẩu sai so với một chính xác?

Video: Tại sao nó mất lâu hơn cho một máy tính để đáp ứng với một mật khẩu sai so với một chính xác?
Video: How to Assess Your Battery’s Health on Windows 10 - YouTube 2024, Tháng tư
Anonim
Bạn đã từng nhập mật khẩu sai trên máy tính của mình một cách tình cờ và nhận thấy phải mất một vài phút để trả lời so với việc nhập đúng mật khẩu? Tại sao vậy? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.
Bạn đã từng nhập mật khẩu sai trên máy tính của mình một cách tình cờ và nhận thấy phải mất một vài phút để trả lời so với việc nhập đúng mật khẩu? Tại sao vậy? Bài đăng Hỏi & Đáp của SuperUser hôm nay có câu trả lời cho câu hỏi của người đọc tò mò.

Phiên Hỏi & Đáp hôm nay đến với chúng tôi theo lịch sự của SuperUser - một phân khu của Stack Exchange, một nhóm các trang web Hỏi & Đáp do cộng đồng điều hành.

Ảnh chụp màn hình lịch sự của sully213 (Flickr).

Câu hỏi

Người dùng SuperUser reader user3536548 muốn biết lý do tại sao có thời gian phản hồi lâu hơn khi nhập sai mật khẩu:

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.

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).

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).

Tại sao có thời gian phản hồi lâu hơn khi bạn nhập sai mật khẩu?

Câu trả lời

Người đóng góp SuperUser Michael Kjorling có câu trả lời cho chúng tôi:

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).

Có cái gì để thêm vào lời giải thích? Tắt âm thanh trong các ý kiến. Bạn muốn đọc thêm câu trả lời từ những người dùng Stack Exchange có hiểu biết công nghệ khác? Xem toàn bộ chuỗi thảo luận tại đây.

Đề xuất: