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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Password fields with max character counts

1 点作者 partly_cloudy超过 1 年前

3 条评论

cowsup超过 1 年前
I recall an old version of vBulletin doing this to me, and it frustrated me enough that I wrote a very similar article. I had a very long password generated for my account, which had moderator permissions. But when I tried to login, no dice. After a few back-and-forths, I came to the frustrating realization that the &quot;Set Password&quot; screen had a limit, whereas the frontend &quot;Login&quot; page had a separate, or no, limit.<p>I totally get the need to have a maxlength on your password input, since you don&#x27;t want to be processing KBs of data each time a user logs in. But, one, make it reasonable (1000 is fine), and two, make it consistent wherever passwords are entered.
avidiax超过 1 年前
Max character counts and disallowed characters are a really strong sign that the site is transmitting or storing the password in plain text.<p>It takes essentially no effort to base64 encode a text field of arbitrary length and contents. If you are salting and hashing that password before storing, you would also not care about the contents or length of the password.
zzo38computer超过 1 年前
There are uses for a maximum length, but it shouldn&#x27;t be that small; maybe 255 bytes is a reasonable maximum length, because you might like long passwords. Some of the other stuff they mention there (other than the maximum password length) are problems with the browser rather than the web design, though.