如果使用HTTP认证方案如何检索salt?

发布于 2024-08-25 03:05:46 字数 200 浏览 10 评论 0原文

是否可以将加盐密码与标准 HTTP 身份验证方案(FORM 或 DIGEST)一起使用?

我正在使用 GlassFish,当我请求受保护的页面时,带有随机数的表单或答案将由服务器直接发回。我看不到任何明显的方法来连接服务器机制以在 302 响应中插入盐(我认为这可能是一个好主意)。因此,我返回的密码可以不加盐地进行哈希处理。

是这样吗?
谢谢。

Is it possible to use salted password along with standard HTTP authentication schemes ( FORM or DIGEST ) ?

I am using GlassFish, and when I request a protected page, the form or the answer with the nonce are sent back directly by the server. I can't see any obvious way to hook into the server mechanism to insert the salt in the 302 response ( which I thought could be a good idea ). Thus the password I return can just be hashed without salt.

Is it so ?
Thank you.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文