TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Am I missing something? Why do passwords get length caps?

3 点作者 AquiGorka超过 1 年前
E.g. Atlassian caps at 100 chars. Why would they do so?

4 条评论

layer8超过 1 年前
Some password hashing algorithms have a maximum input size. For example, <i>bcrypt</i> is limited to 72 characters. The speed of password hashing (which is deliberately designed to be slow to impede brute-force attacks) might also significantly depend on input length, hence overly long input may take too long to hash. Other than that, and general limits on request size, there is no good reason. On the other hand, since the hashes are usually fixed-length, you also don’t gain anything by using overly long passwords.
评论 #37815278 未加载
评论 #37813950 未加载
rolph超过 1 年前
i found this interesting:<p>Password length best practices --What is the standard for maximum password length?<p>Your passwords have to get quite long before you run into any limitations in the Windows world: the maximum length of a password supported by Active Directory is 256 characters. The maximum length of a password that a human user could actually type to log into Windows in 127 characters (the limitation is in the Windows GUI).<p>127 is probably quite impractical for a user to type, but might be good for admin accounts where passwords are checked out and copied and pasted from a password vault. Service account passwords that are almost never typed and possibly rarely changed (if ever) could stand to be longer still.<p><a href="https:&#x2F;&#x2F;specopssoft.com&#x2F;blog&#x2F;password-length-best-practices&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;specopssoft.com&#x2F;blog&#x2F;password-length-best-practices&#x2F;</a>
zzo38computer超过 1 年前
Length limits can help to avoid long processing time perhaps, so you should set a limit, but the limit should be long, maybe more than 100 bytes.
spelufo超过 1 年前
varchar (100) ?
评论 #37826328 未加载