系统如何知道密码何时包含先前密码的部分内容?

发布于 2025-01-04 07:07:24 字数 275 浏览 2 评论 0原文

可能是一个超级基本的问题。我知道许多在线服务都使用哈希密码和盐密码,而不是出于安全目的将它们存储为明文。我大学的门户网站要求学生每 6 个月更改一次密码。据我所知,该系统是基于Oracle软件构建的。

然而,我的问题是,系统如何知道我的 20 个字符长的密码(包含大写字母、数字和符号)何时包含与我尝试设置的新密码顺序相同的 3 个字符?如果密码经过哈希处理,算法不应该是单向的吗?或者系统是否有可能将明文密码加密并存储?那不是更不安全吗?

抱歉,如果问题很难理解。如果您需要我澄清,请告诉我。提前致谢!

Probably a super basic question. I know many online services hash and salt passwords instead of storing them as plaintext for security purposes. My university's web portal requires students to change their passwords every 6 months. From what I know, the system is built on Oracle software.

My question is, however, how does the system know when my 20 character long password (with capitals, numbers, and symbols) contains 3 characters in the same order as the new password I'm trying to set? If the passwords are hashed, shouldn't the algorithm be one-way? Or is it possible that system encrypts the plaintext passwords and stores them? Wouldn't that be less secure?

Sorry if the question is hard to understand. Let me know if you need me to clarify. Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

已下线请稍等 2025-01-11 07:07:24

如果您在创建新密码时需要输入以前的密码,系统可以直接比对它们。这甚至可以在客户端完成。

编辑

只有几种其他可能性

  • 他们以明文形式存储您的密码(在这种情况下他们应该解雇他们的整个IT部门)
  • 他们的加密方法是双向的,即可以解密(在这种情况下他们应该解雇他们的整个IT部门)
  • 当您登录时,它们会临时存储您的密码。可能在 cookie 中或在服务器上。 (在这种情况下,他们应该解雇整个 IT 部门)

If you have to enter your previous password when creating a new one, the system can compare them directly. This could even be done client-side.

EDIT

There are only a few other possibilities

  • They store your password in plaintext (in which case they should fire their entire IT department)
  • Their encryption method is two-way i.e. it can be decrypted (in which case they should fire their entire IT department)
  • They temporarily store your password when you log in. Maybe in a cookie or on the server. (In which case they should fire their entire IT department)
ぃ弥猫深巷。 2025-01-11 07:07:24

先前的密码表很可能已加密(可能使用 rot26)。

It is likely that the prevoius password table is encrypted (possibly using rot26).

你列表最软的妹 2025-01-11 07:07:24

系统只能检查新密码是否与旧密码完全匹配(比较哈希值)。如果它检查子字符串匹配,则密码可能以明文形式存储。

没有布埃诺。

编辑:当然,或者尼克说的话。

The system can only check if the new password matches the old password exactly (compares the hashes). If it's checking substring matches, the passwords are likely being stored in plaintext.

No bueno.

EDIT: Or what Nick said, of course.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文