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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How should you store passwords for authentication against 3rd partys?

2 点作者 samarudge将近 13 年前
There's been a lot of stuff recently about hashing/salting/mashing/crushing/blending etc. passwords for authentication, but what if your application needs access to the plain text passwords. Say, it authenticates with a third party service that requires you to send a username and password to authenticate (I.E. authenticating with a users IMAP/SMTP email account or logging in to their Twitter).<p>Lets ignore the server/database part of this (though that is, of course, important). How should your application store these authentication details in a way where, if your server was compromised and the hackers had access to the database AND application code?

1 comment

jameswyse将近 13 年前
If they have access to the application code then it's all over, since your application has to be able to decrypt the password back to plain text to use it.<p>The only way around this that I can see is just using a different method of authentication.