我应该加密存储 openid Claim_id 吗?

发布于 2024-10-24 18:07:38 字数 62 浏览 0 评论 0原文

用户的OpenIDclaim_id存入数据库时​​是否需要加密?如果有人可以直接查看它,他们可以冒充该用户吗?

Does the OpenID claimed_id of a user need to be encrypted when stored in a database? If someone had plain view access to it, could they pose as that user?

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

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

发布评论

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

评论(1

作业与我同在 2024-10-31 18:07:38

claimed_id 很像用户名。它根据提供商来识别用户。

因此,如果有人获得了claimed_id的访问权限,则不可能冒充该用户,除非攻击者也拥有密码,或者用户已经登录到攻击者的系统上(或者攻击者能够破坏登录过程)其他方式)。

因此,您可以将其视为用户名;加密不是必需的,但您可能会感觉更好,因为知道它是作为额外的安全层而存在的。

但是,如果有人直接访问您的数据库,他们很可能会通过其他方式危害您的整个网站。

The claimed_id is a lot like a username. It identifies the user according to their provider.

So, if someone gained access to a claimed_id, it would not be possible to pose as that user unless the attacker also had the password, or the user was already logged in on the attacker's system (or the attacker was able to subvert the login process some other way).

So, you can treat it like a username; encryption is not required, but you may feel better knowing it's there as an extra layer of security.

If someone gains direct access to your database, however, it's likely that they could compromise your entire site through other means.

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